toast

package module
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

README

Version GoDoc

Golang test helper library

Documentation

Index

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

type T struct {
	*testing.T
	FailNow bool
	// contains filtered or unexported fields
}

func FromT added in v1.1.0

func FromT(t *testing.T) *T

func (*T) Assert added in v1.1.0

func (t *T) Assert(condition bool, i ...interface{})

func (*T) CheckErr added in v1.1.0

func (t *T) CheckErr(err error)

func (*T) Error added in v1.1.0

func (t *T) Error(i ...interface{})

func (*T) ExpectErr added in v1.1.0

func (t *T) ExpectErr(err, expect error)

func (*T) ShouldPanic added in v1.1.0

func (t *T) ShouldPanic(f func(), i ...interface{})

func (*T) TimeIt added in v1.2.2

func (t *T) TimeIt(name string, f func())

func (*T) Wrap added in v1.1.0

func (t *T) Wrap(init, test, cleanup func(*testing.T))

Jump to

Keyboard shortcuts

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