Documentation
¶
Overview ¶
Package mock provides mocks for pipeline components and allows to execute integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutator ¶
Mutator allows to mock mutations.
func (*Mutator) MockMutation ¶
MockMutation mocks mutation, so errors can be simulated.
type Processor ¶
Processor are settings for pipe.Processor mock.
func (*Processor) Processor ¶
func (m *Processor) Processor() pipe.ProcessorAllocatorFunc
Processor returns closure that creates new processors.
type Sink ¶
type Sink struct {
Mutator
Counter
Starter
Flusher
Discard bool
ErrorOnCall error
ErrorOnMake error
}
Sink are settings for pipe.Sink mock.
func (*Sink) Sink ¶
func (m *Sink) Sink() pipe.SinkAllocatorFunc
Sink returns closure that creates new sinks.
type Source ¶
type Source struct {
Mutator
Counter
Starter
Flusher
Interval time.Duration
Limit int
Value float64
Channels int
SampleRate signal.Frequency
ErrorOnCall error
ErrorOnMake error
}
Source are settings for pipe.Source mock.
func (*Source) Source ¶
func (m *Source) Source() pipe.SourceAllocatorFunc
Source returns SourceAllocatorFunc.
Click to show internal directories.
Click to hide internal directories.