Documentation
¶
Index ¶
- Variables
- func AssertOrPanic(condition bool, i ...interface{})
- type T
- func (t *T) Assert(condition bool, i ...interface{})
- func (t *T) CheckErr(err error)
- func (t *T) Error(args ...interface{})
- func (t *T) Errorf(f string, args ...interface{})
- func (t *T) ExpectErr(err, expect error)
- func (t *T) Log(args ...interface{})
- func (t *T) Logf(f string, args ...interface{})
- func (t *T) ShouldPanic(f func(), i ...interface{})
- func (t *T) TimeIt(name string, f func())
- func (t *T) Wrap(init, test, cleanup func(t Toaster))
- type Toaster
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FailNow = true
)
Functions ¶
func AssertOrPanic ¶
func AssertOrPanic(condition bool, i ...interface{})
Types ¶
type T ¶ added in v1.1.0
func (*T) ShouldPanic ¶ added in v1.1.0
func (t *T) ShouldPanic(f func(), i ...interface{})
type Toaster ¶ added in v1.3.0
type Toaster interface { Cleanup(f func()) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fail() FailNow() Failed() bool Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Helper() Log(args ...interface{}) Logf(format string, args ...interface{}) Name() string Setenv(key, value string) Skip(args ...interface{}) SkipNow() Skipf(format string, args ...interface{}) Skipped() bool TempDir() string }
Click to show internal directories.
Click to hide internal directories.