Documentation ¶
Index ¶
- func Contains(t Error, iter, v any) bool
- func Containsf(t Error, iter, v any, format string, args ...any) bool
- func Equal(t Error, g, e any) bool
- func Equalf(t Error, g, e any, format string, args ...any) bool
- func ErrAs(t Error, err error, target any) bool
- func ErrAsf(t Error, err error, target any, format string, args ...any) bool
- func ErrIs(t Error, err, target error) bool
- func ErrIsf(t Error, err, target error, format string, args ...any) bool
- func EventuallyNil(t Error, numTries int, fn func(i int) error) bool
- func EventuallyNilf(t Error, numTries int, fn func(i int) error, format string, args ...any) bool
- func EventuallyTrue(t Error, numTries int, fn func(i int) bool) bool
- func EventuallyTruef(t Error, numTries int, fn func(i int) bool, format string, args ...any) bool
- func False(t Error, cond bool) bool
- func Falsef(t Error, cond bool, format string, args ...any) bool
- func HasKey(t Error, m, k any) bool
- func HasKeyf(t Error, m, k any, format string, args ...any) bool
- func MustContain(t Fatal, iter, v any)
- func MustContainf(t Fatal, iter, v any, format string, args ...any)
- func MustEqual(t Fatal, g, e any)
- func MustEqualf(t Fatal, g, e any, format string, args ...any)
- func MustErrAs(t Fatal, err error, target any)
- func MustErrAsf(t Fatal, err error, target any, format string, args ...any)
- func MustErrIs(t Fatal, err, target error)
- func MustErrIsf(t Fatal, err, target error, format string, args ...any)
- func MustEventuallyNil(t Fatal, numTries int, fn func(i int) error)
- func MustEventuallyNilf(t Fatal, numTries int, fn func(i int) error, format string, args ...any)
- func MustEventuallyTrue(t Fatal, numTries int, fn func(i int) bool)
- func MustEventuallyTruef(t Fatal, numTries int, fn func(i int) bool, format string, args ...any)
- func MustFalse(t Fatal, cond bool)
- func MustFalsef(t Fatal, cond bool, format string, args ...any)
- func MustHaveKey(t Fatal, m, k any)
- func MustHaveKeyf(t Fatal, m, k any, format string, args ...any)
- func MustNil(t Fatal, v any)
- func MustNilf(t Fatal, v any, format string, args ...any)
- func MustNotContain(t Fatal, iter, v any)
- func MustNotContainf(t Fatal, iter, v any, format string, args ...any)
- func MustNotEqual(t Fatal, g, e any)
- func MustNotEqualf(t Fatal, g, e any, format string, args ...any)
- func MustNotHaveKey(t Fatal, m, k any)
- func MustNotHaveKeyf(t Fatal, m, k any, format string, args ...any)
- func MustNotNil(t Fatal, v any)
- func MustNotNilf(t Fatal, v any, format string, args ...any)
- func MustNotPanic(t Fatal, fn func())
- func MustNotPanicf(t Fatal, fn func(), format string, args ...any)
- func MustPanic(t Fatal, fn func())
- func MustPanicWith(t Fatal, recovers any, fn func())
- func MustPanicWithf(t Fatal, recovers any, fn func(), format string, args ...any)
- func MustPanicf(t Fatal, fn func(), format string, args ...any)
- func MustTrue(t Fatal, cond bool)
- func MustTruef(t Fatal, cond bool, format string, args ...any)
- func Nil(t Error, v any) bool
- func Nilf(t Error, v any, format string, args ...any) bool
- func NotContains(t Error, iter, v any) bool
- func NotContainsf(t Error, iter, v any, format string, args ...any) bool
- func NotEqual(t Error, g, e any) bool
- func NotEqualf(t Error, g, e any, format string, args ...any) bool
- func NotHasKey(t Error, m, k any) bool
- func NotHasKeyf(t Error, m, k any, format string, args ...any) bool
- func NotNil(t Error, v any) bool
- func NotNilf(t Error, v any, format string, args ...any) bool
- func NotPanics(t Error, fn func()) bool
- func NotPanicsf(t Error, fn func(), format string, args ...any) bool
- func Panics(t Error, fn func()) bool
- func PanicsWith(t Error, recovers any, fn func()) bool
- func PanicsWithf(t Error, recovers any, fn func(), format string, args ...any) bool
- func Panicsf(t Error, fn func(), format string, args ...any) bool
- func True(t Error, cond bool) bool
- func Truef(t Error, cond bool, format string, args ...any) bool
- type Error
- type Fatal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
Check that iter contains value v. Iter must be one of: map, slice, array, or string.
func Containsf ¶
Check that iter contains value v. Iter must be one of: map, slice, array, or string.
func EventuallyNil ¶
Poll the given function, a max of numTries times, until it doesn't return an error. This is mainly a helper used to exhaust error pathways.
func EventuallyNilf ¶
Poll the given function, a max of numTries times, until it doesn't return an error. This is mainly a helper used to exhaust error pathways.
func EventuallyTrue ¶
Poll the given function, a max of numTries times, until it returns true.
func EventuallyTruef ¶
Poll the given function, a max of numTries times, until it returns true.
func MustContain ¶
Check that iter contains value v. Iter must be one of: map, slice, array, or string.
func MustContainf ¶
Check that iter contains value v. Iter must be one of: map, slice, array, or string.
func MustEqualf ¶
Check that two things are equal; e is the expected value, g is what was got.
func MustErrAsf ¶
Check that errors.As returns true.
func MustErrIsf ¶
Check that errors.Is returns true.
func MustEventuallyNil ¶
Poll the given function, a max of numTries times, until it doesn't return an error. This is mainly a helper used to exhaust error pathways.
func MustEventuallyNilf ¶
Poll the given function, a max of numTries times, until it doesn't return an error. This is mainly a helper used to exhaust error pathways.
func MustEventuallyTrue ¶
Poll the given function, a max of numTries times, until it returns true.
func MustEventuallyTruef ¶
Poll the given function, a max of numTries times, until it returns true.
func MustFalsef ¶
Check that the given bool is false.
func MustHaveKeyf ¶
Check that map m contains key k.
func MustNotContain ¶
Check that iter does not contain value v. Iter must be one of: map, slice, array, or string
func MustNotContainf ¶
Check that iter does not contain value v. Iter must be one of: map, slice, array, or string
func MustNotEqual ¶
Check that two things are not equal; e is the expected value, g is what was got.
func MustNotEqualf ¶
Check that two things are not equal; e is the expected value, g is what was got.
func MustNotHaveKey ¶
Check that map m does not contain key k.
func MustNotHaveKeyf ¶
Check that map m does not contain key k.
func MustNotNil ¶
Check that v is not nil. This is a strict equality check.
func MustNotNilf ¶
Check that v is not nil. This is a strict equality check.
func MustNotPanic ¶
func MustNotPanic(t Fatal, fn func())
Check that the given function does not panic.
func MustNotPanicf ¶
Check that the given function does not panic.
func MustPanicWith ¶
Check that the given function panics with the given value.
func MustPanicWithf ¶
Check that the given function panics with the given value.
func MustPanicf ¶
Check that the given function panics.
func NotContains ¶
Check that iter does not contain value v. Iter must be one of: map, slice, array, or string
func NotContainsf ¶
Check that iter does not contain value v. Iter must be one of: map, slice, array, or string
func NotHasKeyf ¶
Check that map m does not contain key k.
func NotPanicsf ¶
Check that the given function does not panic.
func PanicsWith ¶
Check that the given function panics with the given value.
func PanicsWithf ¶
Check that the given function panics with the given value.