Documentation ¶
Overview ¶
Package testing is an extension to the standard go testing package tailored for testing the lego framework.
This package should solely be used by test packages.
Index ¶
- Constants
- func DidPanic(f func()) (bool, interface{})
- func NewLogger(t *testing.T) log.Logger
- func NewStats(t *testing.T) stats.Stats
- type Logger
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(f string, args ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Lines(s string) int
- func (l *Logger) Trace(args ...interface{})
- func (l *Logger) Tracef(f string, args ...interface{})
- func (l *Logger) Traceln(args ...interface{})
- func (l *Logger) Warning(args ...interface{})
- func (l *Logger) Warningf(f string, args ...interface{})
- func (l *Logger) Warningln(args ...interface{})
- type Stats
- type T
- func (t *T) Config() *config.Config
- func (t *T) Error(args ...interface{})
- func (t *T) Errorf(format string, args ...interface{})
- func (t *T) Fail()
- func (t *T) FailNow()
- func (t *T) Failed()
- func (t *T) Fatal(args ...interface{})
- func (t *T) Fatalf(format string, args ...interface{})
- func (t *T) Log(args ...interface{})
- func (t *T) Logf(format string, args ...interface{})
- func (t *T) Logger() log.Logger
- func (t *T) NewAppCtx(name string) app.Ctx
- func (t *T) Parallel()
- func (t *T) Skip(args ...interface{})
- func (t *T) SkipNow()
- func (t *T) Skipf(format string, args ...interface{})
- func (t *T) Skipped()
- func (t *T) Stats() stats.Stats
Constants ¶
View Source
const ( // T is the TRACE log constant TC = "TRACE" // W is the WARNING log constant WN = "WARN" // E is the ERROR log constant ER = "ERRR" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a simple Logger interface useful for tests
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
Stats is a simple Stats interface useful for tests
Click to show internal directories.
Click to hide internal directories.