mocks

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipe

type Pipe struct {
	// contains filtered or unexported fields
}

Pipe is a mock Pipe.

func NewPipe

func NewPipe(t *testing.T) *Pipe

NewPipe create a new mock Pipe instance.

func (*Pipe) AssertExpectations

func (p *Pipe) AssertExpectations()

func (*Pipe) Commit

func (p *Pipe) Commit(msg *streams.Message) error

Commit commits the current state in the sources.

func (*Pipe) ExpectCommit

func (p *Pipe) ExpectCommit()

func (*Pipe) ExpectForward

func (p *Pipe) ExpectForward(k, v interface{})

func (*Pipe) ExpectForwardToChild

func (p *Pipe) ExpectForwardToChild(k, v interface{}, index int)

func (*Pipe) Forward

func (p *Pipe) Forward(msg *streams.Message) error

Forward queues the data to all processor children in the topology.

func (*Pipe) ForwardToChild

func (p *Pipe) ForwardToChild(msg *streams.Message, index int) error

Forward queues the data to the the given processor(s) child in the topology.

func (*Pipe) Queue

func (p *Pipe) Queue() []streams.NodeMessage

Queue gets the queued Messages for each Node.

func (*Pipe) ShouldError

func (p *Pipe) ShouldError()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL