Documentation
¶
Index ¶
- Variables
- func Contains[T any](t *testing.T, got T, wants []T, msgAndArgs ...any)
- func Equal[T any](t *testing.T, got T, want T, msgAndArgs ...any)
- func ErrorIs(t *testing.T, expected error, err error, msgAndArgs ...any)
- func ErrorT[T error](t *testing.T, err error, msgAndArgs ...any)
- func ExpectContains[T any](t *testing.T, got T, wants []T)
- func ExpectEqual[T any](t *testing.T, got T, want T)
- func ExpectError(t *testing.T, expected error, err error)
- func ExpectErrorT[T error](t *testing.T, err error)
- func ExpectFalse(t *testing.T, got bool)
- func ExpectHasError(t *testing.T, err error)
- func ExpectNoError(t *testing.T, err error)
- func ExpectTrue(t *testing.T, got bool)
- func ExpectType[T any](t *testing.T, got any) (_ T)
- func Must[Result any](r Result, err error) Result
- func NotEqual[T any](t *testing.T, got T, want T, msgAndArgs ...any)
- func Type[T any](t *testing.T, got any, msgAndArgs ...any) (_ T)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoError = require.NoError HasError = require.Error True = require.True False = require.False Nil = require.Nil NotNil = require.NotNil ErrorContains = require.ErrorContains Panics = require.Panics Greater = require.Greater Less = require.Less GreaterOrEqual = require.GreaterOrEqual LessOrEqual = require.LessOrEqual )
Functions ¶
func ExpectContains ¶ added in v0.10.0
func ExpectEqual ¶
func ExpectFalse ¶
func ExpectHasError ¶
func ExpectNoError ¶
func ExpectTrue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.