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(i ...interface{})
- func (t *T) ExpectErr(err, expect error)
- 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{})
Click to show internal directories.
Click to hide internal directories.