testing_utils

package
v0.0.0-...-ea1f910 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileSystemPathExistance

func CheckFileSystemPathExistance(fs afero.Fs, relPath string, mustExist bool) error

func NewContext

func NewContext(virtualFileSystem bool) (*context.Context, error)

func NewLogger

func NewLogger() logger.Logger

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 ExpectedLine struct {
	Index              int
	RequiredSubstrings []string
	Error              bool
	Warning            bool
	Info               bool
	Debug              bool
}

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) WithError

func (t *TestingLogger) WithError(err error) logger.Logger

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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