testing

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLogWatcher

type FakeLogWatcher struct {
	sync.Mutex
	// contains filtered or unexported fields
}

FakeLogWatcher is a fake mock of log watcher.

func NewFakeLogWatcher

func NewFakeLogWatcher(bufferSize int) *FakeLogWatcher

func (*FakeLogWatcher) InjectError

func (f *FakeLogWatcher) InjectError(err error)

InjectError injects an error of Watch function.

func (*FakeLogWatcher) InjectLog

func (f *FakeLogWatcher) InjectLog(log *logtypes.Log)

InjectLog injects a fake log into the watch channel

func (*FakeLogWatcher) Stop

func (f *FakeLogWatcher) Stop()

Stop is the fake stop function.

func (*FakeLogWatcher) Watch

func (f *FakeLogWatcher) Watch() (<-chan *logtypes.Log, error)

Watch is the fake watch function.

Jump to

Keyboard shortcuts

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