Documentation ¶
Index ¶
- func CheckFileSystemPathExistance(fs afero.Fs, relPath string, mustExist bool) error
- func NewContext(virtualFileSystem bool) (*context.Context, error)
- func NewLogger() logger.Logger
- func NewTestingHostDetails(hostName string, remoteFileSystemFactory remote_file_system.Factory) host_details.HostDetails
- func NewTestingRemoteFSFactory() remote_file_system.Factory
- type ExpectedLine
- type LogExpectation
- type TestingLogger
- func (t *TestingLogger) Alert(format string, params ...interface{})
- func (t *TestingLogger) Clear()
- func (t *TestingLogger) Critical(format string, params ...interface{})
- func (t *TestingLogger) Debug(format string, params ...interface{})
- func (t *TestingLogger) DeferredRecoverStack(debugMessage string)
- func (t *TestingLogger) Emergency(format string, params ...interface{})
- func (t *TestingLogger) Error(format string, params ...interface{})
- func (t *TestingLogger) FullStrings(includeDebugLines bool) (lines []string)
- func (t *TestingLogger) Info(format string, params ...interface{})
- func (t *TestingLogger) Notice(format string, params ...interface{})
- func (t *TestingLogger) Trace(format string, params ...interface{}) logger.LogTracer
- func (t *TestingLogger) TraceDebug(format string, params ...interface{}) logger.LogDebugTracer
- func (t *TestingLogger) Warn(format string, params ...interface{})
- func (t *TestingLogger) WithError(err error) logger.Logger
- func (t *TestingLogger) WithField(key string, value interface{}) logger.Logger
- func (t *TestingLogger) WithFields(fields map[string]interface{}) logger.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestingHostDetails ¶
func NewTestingHostDetails(hostName string, remoteFileSystemFactory remote_file_system.Factory) host_details.HostDetails
func NewTestingRemoteFSFactory ¶
func NewTestingRemoteFSFactory() remote_file_system.Factory
Types ¶
type ExpectedLine ¶
type LogExpectation ¶
type LogExpectation struct { LineCount int Lines []ExpectedLine }
func (*LogExpectation) MeetsExpectation ¶
func (l *LogExpectation) MeetsExpectation(testingLogger *TestingLogger, includeDebugLines bool) error
type TestingLogger ¶
type TestingLogger struct { Handler *testingLogHandler Fields []map[string]interface{} // contains filtered or unexported fields }
func (*TestingLogger) Alert ¶
func (t *TestingLogger) Alert(format string, params ...interface{})
func (*TestingLogger) Clear ¶
func (t *TestingLogger) Clear()
func (*TestingLogger) Critical ¶
func (t *TestingLogger) Critical(format string, params ...interface{})
func (*TestingLogger) Debug ¶
func (t *TestingLogger) Debug(format string, params ...interface{})
func (*TestingLogger) DeferredRecoverStack ¶
func (t *TestingLogger) DeferredRecoverStack(debugMessage string)
func (*TestingLogger) Emergency ¶
func (t *TestingLogger) Emergency(format string, params ...interface{})
func (*TestingLogger) Error ¶
func (t *TestingLogger) Error(format string, params ...interface{})
func (*TestingLogger) FullStrings ¶
func (t *TestingLogger) FullStrings(includeDebugLines bool) (lines []string)
func (*TestingLogger) Info ¶
func (t *TestingLogger) Info(format string, params ...interface{})
func (*TestingLogger) Notice ¶
func (t *TestingLogger) Notice(format string, params ...interface{})
func (*TestingLogger) Trace ¶
func (t *TestingLogger) Trace(format string, params ...interface{}) logger.LogTracer
func (*TestingLogger) TraceDebug ¶
func (t *TestingLogger) TraceDebug(format string, params ...interface{}) logger.LogDebugTracer
func (*TestingLogger) Warn ¶
func (t *TestingLogger) Warn(format string, params ...interface{})
func (*TestingLogger) WithField ¶
func (t *TestingLogger) WithField(key string, value interface{}) logger.Logger
func (*TestingLogger) WithFields ¶
func (t *TestingLogger) WithFields(fields map[string]interface{}) logger.Logger
Source Files ¶
Click to show internal directories.
Click to hide internal directories.