mock

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAllDummySignals added in v1.0.2

func ClearAllDummySignals()

ClearAllDummySignals clears all dummy signals

func SendDummySignal added in v1.0.2

func SendDummySignal(signal string)

SendDummySignal sends a dummy signal (creates a file)

func WaitForDummySignal added in v1.0.2

func WaitForDummySignal(signal string)

WaitForDummySignal waits for a signal (a dummy file) to appear

func WaitUntilLogLevelPattern added in v1.0.2

func WaitUntilLogLevelPattern(value string)

WaitUntilLogLevelPattern waits until a log level matches the value

Types

type DummyLogsGatherer added in v1.0.2

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

DummyLogsGatherer -

func (*DummyLogsGatherer) ContainsLogLine added in v1.0.2

func (gatherer *DummyLogsGatherer) ContainsLogLine(loggerName string, level logger.LogLevel, message string) bool

ContainsLogLine -

func (*DummyLogsGatherer) ContainsText added in v1.0.2

func (gatherer *DummyLogsGatherer) ContainsText(str string) bool

ContainsText -

func (*DummyLogsGatherer) GetText added in v1.0.2

func (gatherer *DummyLogsGatherer) GetText() string

GetText -

func (*DummyLogsGatherer) IsInterfaceNil added in v1.0.2

func (gatherer *DummyLogsGatherer) IsInterfaceNil() bool

IsInterfaceNil -

func (*DummyLogsGatherer) Output added in v1.0.2

func (gatherer *DummyLogsGatherer) Output(line logger.LogLineHandler) []byte

Output -

func (*DummyLogsGatherer) Write added in v1.0.2

func (gatherer *DummyLogsGatherer) Write(p []byte) (n int, err error)

Write -

type FormatterStub

type FormatterStub struct {
	OutputCalled func(line logger.LogLineHandler) []byte
}

FormatterStub -

func (*FormatterStub) IsInterfaceNil

func (fs *FormatterStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*FormatterStub) Output

func (fs *FormatterStub) Output(line logger.LogLineHandler) []byte

Output -

type MarshalizerStub

type MarshalizerStub struct {
	MarshalCalled   func(obj interface{}) ([]byte, error)
	UnmarshalCalled func(obj interface{}, buff []byte) error
}

MarshalizerStub -

func (*MarshalizerStub) IsInterfaceNil

func (ms *MarshalizerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*MarshalizerStub) Marshal

func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error)

Marshal -

func (*MarshalizerStub) Unmarshal

func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error

Unmarshal -

type WriterStub

type WriterStub struct {
	WriteCalled func(p []byte) (n int, err error)
}

WriterStub -

func (*WriterStub) Write

func (ws *WriterStub) Write(p []byte) (n int, err error)

Write -

Jump to

Keyboard shortcuts

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