require

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.0.2

func Contains(t testing.T, data any, contains any, msgAndArgs ...any)

Contains is a proxy function for require.Contains.

func ElementsMatch added in v0.0.2

func ElementsMatch(t testing.T, listA any, listB any, msgAndArgs ...any)

ElementsMatch is a proxy function for require.ElementsMatch.

func Equal

func Equal(t testing.T, expected any, actual any, msgAndArgs ...any)

Equal is a proxy function for require.Equal.

func EqualError

func EqualError(t testing.T, err error, errString string, msgAndArgs ...any)

EqualError is a proxy function for require.EqualError.

func Error

func Error(t testing.T, err error, msgAndArgs ...any)

Error is a proxy function for require.Error.

func ErrorContains added in v0.0.2

func ErrorContains(t testing.T, err error, contains string, msgAndArgs ...any)

ErrorContains is a proxy function for require.ErrorContains.

func ErrorIs

func ErrorIs(t testing.T, err error, target error, msgAndArgs ...any)

ErrorIs is a proxy function for require.ErrorIs.

func FailNow

func FailNow(t testing.T, failureMessage string, msgAndArgs ...any)

FailNow is a proxy function for require.FailNow.

func False

func False(t testing.T, value bool, msgAndArgs ...any)

False is a proxy function for require.False.

func Implements

func Implements(t testing.T, interfaceObject any, object any, msgAndArgs ...any)

Implements is a proxy function for require.Implements.

func InDelta added in v0.0.2

func InDelta(t testing.T, expected any, actual any, delta float64, msgAndArgs ...any)

InDelta is a proxy function for require.InDelta.

func IsType

func IsType(t testing.T, expectedType any, object any, msgAndArgs ...any)

IsType is a proxy function for require.IsType.

func Len

func Len(t testing.T, object any, length int, msgAndArgs ...any)

Len is a proxy function for require.Len.

func Nil

func Nil(t testing.T, object any, msgAndArgs ...any)

Nil is a proxy function for require.Nil.

func NoError

func NoError(t testing.T, err error, msgAndArgs ...any)

NoError is a proxy function for require.NoError.

func NotErrorIs added in v0.0.2

func NotErrorIs(t testing.T, err error, target error, msgAndArgs ...any)

NotErrorIs is a proxy function for require.NotErrorIs.

func NotNil

func NotNil(t testing.T, object any, msgAndArgs ...any)

NotNil is a proxy function for require.NotNil.

func NotPanics

func NotPanics(t testing.T, fn func(), msgAndArgs ...any)

NotPanics is a proxy function for require.NotPanics.

func NotSame

func NotSame(t testing.T, expected any, actual any, msgAndArgs ...any)

NotSame is a proxy function for require.NotSame.

func Panics

func Panics(t testing.T, fn func(), msgAndArgs ...any)

Panics is a proxy function for require.Panics.

func PanicsWithError added in v0.0.2

func PanicsWithError(t testing.T, errString string, fn func(), msgAndArgs ...any)

PanicsWithError is a proxy function for require.PanicsWithError.

func Regexp

func Regexp(t testing.T, regexp any, str any, msgAndArgs ...any)

Regexp is a proxy function for require.Regexp.

func Same

func Same(t testing.T, expected any, actual any, msgAndArgs ...any)

Same is a proxy function for require.Same.

func True

func True(t testing.T, value bool, msgAndArgs ...any)

True is a proxy function for require.True.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL