Documentation
¶
Overview ¶
Package mock allows to mock pipeline components and execute integration tests.
Index ¶
- type Hooks
- type Processor
- type Pump
- func (c *Pump) Count() (int, int)
- func (m *Pump) Flush(string) error
- func (m *Pump) Interrupt(string) error
- func (m *Pump) IntervalParam(i time.Duration) func()
- func (m *Pump) LimitParam(l int) func()
- func (m *Pump) Pump(sourceID string) (func(bufferSize int) ([][]float64, error), int, int, error)
- func (m *Pump) Reset(string) error
- func (m *Pump) ValueParam(v float64) func()
- type Sink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶ added in v0.2.0
type Hooks struct {
Resetted bool
Flushed bool
Interrupted bool
ErrorOnReset error
ErrorOnFlush error
ErrorOnInterrupt error
}
Hooks allows to mock components hooks.
type Processor ¶
Processor mocks a pipe.Processor interface.
type Pump ¶
type Pump struct {
Interval time.Duration
Limit int
Value float64
NumChannels int
SampleRate int
ErrorOnCall error
Hooks
// contains filtered or unexported fields
}
Pump mocks a pipe.Pump interface.
func (*Pump) IntervalParam ¶
IntervalParam pushes new interval value for pump.
func (*Pump) LimitParam ¶
LimitParam pushes new limit value for pump.
func (*Pump) ValueParam ¶
ValueParam pushes new signal value for pump.
Click to show internal directories.
Click to hide internal directories.