toast

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 (
	FailFast = true
)

Functions

func AssertOrPanic

func AssertOrPanic(condition bool, i ...interface{})

Types

type T added in v1.1.0

type T struct {
	*testing.T
	FailFast 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) 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