Documentation ¶
Overview ¶
Package assert is a minimal assert package using reflection.
This prevents triple from needing additional dependencies.
Index ¶
- func Equal(tb testing.TB, got, want interface{}, options ...Option) bool
- func ErrorIs(tb testing.TB, got, want error, options ...Option) bool
- func False(tb testing.TB, got bool, options ...Option) bool
- func Match(tb testing.TB, got, want string, options ...Option) bool
- func Nil(tb testing.TB, got interface{}, options ...Option) bool
- func NotEqual(tb testing.TB, got, want interface{}, options ...Option) bool
- func NotNil(tb testing.TB, got interface{}, options ...Option) bool
- func NotZero(tb testing.TB, got interface{}, options ...Option) bool
- func Panics(tb testing.TB, panicker func(), options ...Option)
- func True(tb testing.TB, got bool, options ...Option) bool
- func Zero(tb testing.TB, got interface{}, options ...Option) bool
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorIs ¶
ErrorIs asserts that "want" is in "got's" error chain. See the standard library's errors package for details on error chains. On failure, output is identical to Equal.
Types ¶
Click to show internal directories.
Click to hide internal directories.