Documentation ¶
Index ¶
- func CallerInfo() []string
- func Equal(t *testing.T, expected, actual any, msgAndArgs ...any)
- func Error(t *testing.T, err error, msgAndArgs ...any)
- func ErrorIs(t *testing.T, expected, actual error, msgAndArgs ...any)
- func FailNow(t *testing.T, errMsg string, msgAndArgs ...any)
- func False(t *testing.T, b bool, msgAndArgs ...any)
- func Greater(t *testing.T, expected, actual any, msgAndArgs ...any)
- func GreaterOrEqual(t *testing.T, expected, actual any, msgAndArgs ...any)
- func Less(t *testing.T, expected, actual any, msgAndArgs ...any)
- func LessOrEqual(t *testing.T, expected, actual any, msgAndArgs ...any)
- func NoError(t *testing.T, err error, msgAndArgs ...any)
- func NotNil(t *testing.T, a any, msgAndArgs ...any)
- func NotZero(t *testing.T, a any, msgAndArgs ...any)
- func True(t *testing.T, b bool, msgAndArgs ...any)
- func Zero(t *testing.T, a any, msgAndArgs ...any)
- type Require
- func (r *Require) Equal(expected, actual any, msgAndArgs ...any)
- func (r *Require) Error(err error, msgAndArgs ...any)
- func (r *Require) ErrorIs(expected, actual error, msgAndArgs ...any)
- func (r *Require) False(b bool, msgAndArgs ...any)
- func (r *Require) Greater(expected, actual any, msgAndArgs ...any)
- func (r *Require) GreaterOrEqual(expected, actual any, msgAndArgs ...any)
- func (r *Require) Less(expected, actual any, msgAndArgs ...any)
- func (r *Require) LessOrEqual(expected, actual any, msgAndArgs ...any)
- func (r *Require) NoError(err error, msgAndArgs ...any)
- func (r *Require) NotNil(a any, msgAndArgs ...any)
- func (r *Require) NotZero(a any, msgAndArgs ...any)
- func (r *Require) True(b bool, msgAndArgs ...any)
- func (r *Require) Zero(a any, msgAndArgs ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerInfo ¶
func CallerInfo() []string
CallerInfo returns an array of strings containing the file and line number of each stack frame leading from the current test to the assert call that failed.
Types ¶
type Require ¶
type Require struct {
// contains filtered or unexported fields
}
func (*Require) GreaterOrEqual ¶
func (*Require) LessOrEqual ¶
Click to show internal directories.
Click to hide internal directories.