require

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Package require provides testify-compatible assertions that stop on failure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Condition

func Condition(t TestingT, comp assert.Comparison, msgAndArgs ...interface{})

func Conditionf

func Conditionf(t TestingT, comp assert.Comparison, msg string, args ...interface{})

func Contains

func Contains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})

func Containsf

func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{})

func DirExists

func DirExists(t TestingT, path string, msgAndArgs ...interface{})

func DirExistsf

func DirExistsf(t TestingT, path string, msg string, args ...interface{})

func ElementsMatch

func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})

func ElementsMatchf

func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{})

func Empty

func Empty(t TestingT, object interface{}, msgAndArgs ...interface{})

func Emptyf

func Emptyf(t TestingT, object interface{}, msg string, args ...interface{})

func Equal

func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})

func EqualError

func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{})

func EqualErrorf

func EqualErrorf(t TestingT, theError error, errString string, msg string, args ...interface{})

func EqualExportedValues

func EqualExportedValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func EqualExportedValuesf

func EqualExportedValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

func EqualValues

func EqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func EqualValuesf

func EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

func Equalf

func Equalf(t TestingT, expected, actual interface{}, msg string, args ...interface{})

func Error

func Error(t TestingT, err error, msgAndArgs ...interface{})

func ErrorAs

func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{})

func ErrorAsf

func ErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{})

func ErrorContains

func ErrorContains(t TestingT, theError error, contains string, msgAndArgs ...interface{})

func ErrorContainsf

func ErrorContainsf(t TestingT, theError error, contains string, msg string, args ...interface{})

func ErrorIs

func ErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})

func ErrorIsf

func ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{})

func Errorf

func Errorf(t TestingT, err error, msg string, args ...interface{})

func Eventually

func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

func EventuallyWithT

func EventuallyWithT(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

func EventuallyWithTf

func EventuallyWithTf(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{})

func Eventuallyf

func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})

func Exactly

func Exactly(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func Exactlyf

func Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

func Fail

func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{})

func FailNow

func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{})

func FailNowf

func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{})

func Failf

func Failf(t TestingT, failureMessage string, msg string, args ...interface{})

func False

func False(t TestingT, value bool, msgAndArgs ...interface{})

func Falsef

func Falsef(t TestingT, value bool, msg string, args ...interface{})

func FileExists

func FileExists(t TestingT, path string, msgAndArgs ...interface{})

func FileExistsf

func FileExistsf(t TestingT, path string, msg string, args ...interface{})

func Greater

func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})

func GreaterOrEqual

func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})

func GreaterOrEqualf

func GreaterOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})

func Greaterf

func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})

func HTTPBodyContains

func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})

func HTTPBodyContainsf

func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})

func HTTPBodyNotContains

func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{})

func HTTPBodyNotContainsf

func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{})

func HTTPError

func HTTPError(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})

func HTTPErrorf

func HTTPErrorf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})

func HTTPRedirect

func HTTPRedirect(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})

func HTTPRedirectf

func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})

func HTTPStatusCode

func HTTPStatusCode(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msgAndArgs ...interface{})

func HTTPStatusCodef

func HTTPStatusCodef(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, statuscode int, msg string, args ...interface{})

func HTTPSuccess

func HTTPSuccess(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{})

func HTTPSuccessf

func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{})

func Implements

func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})

func Implementsf

func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{})

func InDelta

func InDelta(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})

func InDeltaMapValues

func InDeltaMapValues(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})

func InDeltaMapValuesf

func InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})

func InDeltaSlice

func InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{})

func InDeltaSlicef

func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})

func InDeltaf

func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})

func InEpsilon

func InEpsilon(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})

func InEpsilonSlice

func InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})

func InEpsilonSlicef

func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})

func InEpsilonf

func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})

func IsDecreasing

func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})

func IsDecreasingf

func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{})

func IsIncreasing

func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})

func IsIncreasingf

func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{})

func IsNonDecreasing

func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})

func IsNonDecreasingf

func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{})

func IsNonIncreasing

func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})

func IsNonIncreasingf

func IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{})

func IsNotType

func IsNotType(t TestingT, theType interface{}, object interface{}, msgAndArgs ...interface{})

func IsNotTypef

func IsNotTypef(t TestingT, theType interface{}, object interface{}, msg string, args ...interface{})

func IsType

func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{})

func IsTypef

func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{})

func JSONEq

func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{})

func JSONEqf

func JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{})

func Len

func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{})

func Lenf

func Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{})

func Less

func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})

func LessOrEqual

func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})

func LessOrEqualf

func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})

func Lessf

func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})

func Negative

func Negative(t TestingT, e interface{}, msgAndArgs ...interface{})

func Negativef

func Negativef(t TestingT, e interface{}, msg string, args ...interface{})

func Never

func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

func Neverf

func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})

func Nil

func Nil(t TestingT, object interface{}, msgAndArgs ...interface{})

func Nilf

func Nilf(t TestingT, object interface{}, msg string, args ...interface{})

func NoDirExists

func NoDirExists(t TestingT, path string, msgAndArgs ...interface{})

func NoDirExistsf

func NoDirExistsf(t TestingT, path string, msg string, args ...interface{})

func NoError

func NoError(t TestingT, err error, msgAndArgs ...interface{})

func NoErrorf

func NoErrorf(t TestingT, err error, msg string, args ...interface{})

func NoFileExists

func NoFileExists(t TestingT, path string, msgAndArgs ...interface{})

func NoFileExistsf

func NoFileExistsf(t TestingT, path string, msg string, args ...interface{})

func NotContains

func NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})

func NotContainsf

func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{})

func NotElementsMatch

func NotElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})

func NotElementsMatchf

func NotElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{})

func NotEmpty

func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{})

func NotEmptyf

func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{})

func NotEqual

func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})

func NotEqualValues

func NotEqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func NotEqualValuesf

func NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

func NotEqualf

func NotEqualf(t TestingT, expected, actual interface{}, msg string, args ...interface{})

func NotErrorAs

func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{})

func NotErrorAsf

func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{})

func NotErrorIs

func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})

func NotErrorIsf

func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{})

func NotImplements

func NotImplements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})

func NotImplementsf

func NotImplementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{})

func NotNil

func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{})

func NotNilf

func NotNilf(t TestingT, object interface{}, msg string, args ...interface{})

func NotPanics

func NotPanics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})

func NotPanicsf

func NotPanicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})

func NotRegexp

func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})

func NotRegexpf

func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{})

func NotSame

func NotSame(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func NotSamef

func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

func NotSubset

func NotSubset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})

func NotSubsetf

func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{})

func NotZero

func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{})

func NotZerof

func NotZerof(t TestingT, i interface{}, msg string, args ...interface{})

func Panics

func Panics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})

func PanicsWithError

func PanicsWithError(t TestingT, errString string, f assert.PanicTestFunc, msgAndArgs ...interface{})

func PanicsWithErrorf

func PanicsWithErrorf(t TestingT, errString string, f assert.PanicTestFunc, msg string, args ...interface{})

func PanicsWithValue

func PanicsWithValue(t TestingT, expected interface{}, f assert.PanicTestFunc, msgAndArgs ...interface{})

func PanicsWithValuef

func PanicsWithValuef(t TestingT, expected interface{}, f assert.PanicTestFunc, msg string, args ...interface{})

func Panicsf

func Panicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})

func Positive

func Positive(t TestingT, e interface{}, msgAndArgs ...interface{})

func Positivef

func Positivef(t TestingT, e interface{}, msg string, args ...interface{})

func Regexp

func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})

func Regexpf

func Regexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{})

func Same

func Same(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})

func Samef

func Samef(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

func Subset

func Subset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})

func Subsetf

func Subsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{})

func True

func True(t TestingT, value bool, msgAndArgs ...interface{})

func Truef

func Truef(t TestingT, value bool, msg string, args ...interface{})

func WithinDuration

func WithinDuration(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{})

func WithinDurationf

func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{})

func WithinRange

func WithinRange(t TestingT, actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{})

func WithinRangef

func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{})

func YAMLEq

func YAMLEq(t TestingT, expected string, actual string, msgAndArgs ...interface{})

func YAMLEqf

func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{})

func Zero

func Zero(t TestingT, i interface{}, msgAndArgs ...interface{})

func Zerof

func Zerof(t TestingT, i interface{}, msg string, args ...interface{})

Types

type Assertions

type Assertions struct {
	*testify.Assertions
	// contains filtered or unexported fields
}

func New

func New(t TestingT) *Assertions

func NewWithOptions

func NewWithOptions(t TestingT, opts ...cmp.Option) *Assertions

func (*Assertions) Equal

func (a *Assertions) Equal(expected, actual interface{}, msgAndArgs ...interface{})

func (*Assertions) Equalf

func (a *Assertions) Equalf(expected, actual interface{}, msg string, args ...interface{})

func (*Assertions) NotEqual

func (a *Assertions) NotEqual(expected, actual interface{}, msgAndArgs ...interface{})

func (*Assertions) NotEqualf

func (a *Assertions) NotEqualf(expected, actual interface{}, msg string, args ...interface{})

type BoolAssertionFunc

type BoolAssertionFunc = upstream.BoolAssertionFunc

type ComparisonAssertionFunc

type ComparisonAssertionFunc = upstream.ComparisonAssertionFunc

type ErrorAssertionFunc

type ErrorAssertionFunc = upstream.ErrorAssertionFunc

type TestingT

type TestingT = upstream.TestingT

type ValueAssertionFunc

type ValueAssertionFunc = upstream.ValueAssertionFunc

Jump to

Keyboard shortcuts

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