Documentation ¶
Index ¶
- func ClearAllDummySignals()
- func SendDummySignal(signal string)
- func WaitForDummySignal(signal string)
- func WaitUntilLogLevelPattern(value string)
- type DummyLogsGatherer
- func (gatherer *DummyLogsGatherer) ContainsLogLine(loggerName string, level logger.LogLevel, message string) bool
- func (gatherer *DummyLogsGatherer) ContainsText(str string) bool
- func (gatherer *DummyLogsGatherer) GetText() string
- func (gatherer *DummyLogsGatherer) IsInterfaceNil() bool
- func (gatherer *DummyLogsGatherer) Output(line logger.LogLineHandler) []byte
- func (gatherer *DummyLogsGatherer) Write(_ []byte) (n int, err error)
- type FormatterMock
- type FormatterStub
- type LoggerStub
- func (stub *LoggerStub) Debug(message string, args ...interface{})
- func (stub *LoggerStub) Error(message string, args ...interface{})
- func (stub *LoggerStub) GetLevel() logger.LogLevel
- func (stub *LoggerStub) Info(message string, args ...interface{})
- func (stub *LoggerStub) IsInterfaceNil() bool
- func (stub *LoggerStub) Log(logLevel logger.LogLevel, message string, args ...interface{})
- func (stub *LoggerStub) LogIfError(err error, args ...interface{})
- func (stub *LoggerStub) LogLine(line *logger.LogLine)
- func (stub *LoggerStub) SetLevel(logLevel logger.LogLevel)
- func (stub *LoggerStub) Trace(message string, args ...interface{})
- func (stub *LoggerStub) Warn(message string, args ...interface{})
- type MarshalizerStub
- type WriterStub
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 -
type FormatterMock ¶ added in v1.0.7
type FormatterMock struct { }
func (*FormatterMock) IsInterfaceNil ¶ added in v1.0.7
func (mock *FormatterMock) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*FormatterMock) Output ¶ added in v1.0.7
func (mock *FormatterMock) Output(line logger.LogLineHandler) []byte
Output converts the provided LogLineHandler into a slice of bytes ready for output
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 LoggerStub ¶ added in v1.0.8
type LoggerStub struct { TraceCalled func(message string, args ...interface{}) DebugCalled func(message string, args ...interface{}) InfoCalled func(message string, args ...interface{}) WarnCalled func(message string, args ...interface{}) ErrorCalled func(message string, args ...interface{}) LogIfErrorCalled func(err error, args ...interface{}) LogCalled func(logLevel logger.LogLevel, message string, args ...interface{}) LogLineCalled func(line *logger.LogLine) SetLevelCalled func(logLevel logger.LogLevel) GetLevelCalled func() logger.LogLevel }
LoggerStub -
func (*LoggerStub) Debug ¶ added in v1.0.8
func (stub *LoggerStub) Debug(message string, args ...interface{})
Debug -
func (*LoggerStub) Error ¶ added in v1.0.8
func (stub *LoggerStub) Error(message string, args ...interface{})
Error -
func (*LoggerStub) GetLevel ¶ added in v1.0.8
func (stub *LoggerStub) GetLevel() logger.LogLevel
GetLevel -
func (*LoggerStub) Info ¶ added in v1.0.8
func (stub *LoggerStub) Info(message string, args ...interface{})
Info -
func (*LoggerStub) IsInterfaceNil ¶ added in v1.0.8
func (stub *LoggerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*LoggerStub) Log ¶ added in v1.0.8
func (stub *LoggerStub) Log(logLevel logger.LogLevel, message string, args ...interface{})
Log -
func (*LoggerStub) LogIfError ¶ added in v1.0.8
func (stub *LoggerStub) LogIfError(err error, args ...interface{})
LogIfError -
func (*LoggerStub) LogLine ¶ added in v1.0.8
func (stub *LoggerStub) LogLine(line *logger.LogLine)
LogLine -
func (*LoggerStub) SetLevel ¶ added in v1.0.8
func (stub *LoggerStub) SetLevel(logLevel logger.LogLevel)
SetLevel -
func (*LoggerStub) Trace ¶ added in v1.0.8
func (stub *LoggerStub) Trace(message string, args ...interface{})
Trace -
func (*LoggerStub) Warn ¶ added in v1.0.8
func (stub *LoggerStub) Warn(message string, args ...interface{})
Warn -
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 -