Documentation
¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Package require provides testify-compatible assertions that stop on failure.
Index ¶
- func Condition(t TestingT, comp assert.Comparison, msgAndArgs ...interface{})
- func Conditionf(t TestingT, comp assert.Comparison, msg string, args ...interface{})
- func Contains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})
- func Containsf(t TestingT, s interface{}, contains interface{}, msg string, ...)
- func DirExists(t TestingT, path string, msgAndArgs ...interface{})
- func DirExistsf(t TestingT, path string, msg string, args ...interface{})
- func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})
- func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, ...)
- func Empty(t TestingT, object interface{}, msgAndArgs ...interface{})
- func Emptyf(t TestingT, object interface{}, msg string, args ...interface{})
- func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})
- func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{})
- func EqualErrorf(t TestingT, theError error, errString string, msg string, args ...interface{})
- func EqualExportedValues(t TestingT, expected interface{}, actual interface{}, ...)
- func EqualExportedValuesf(t TestingT, expected interface{}, actual interface{}, msg string, ...)
- func EqualValues(t TestingT, expected interface{}, actual interface{}, ...)
- func EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, ...)
- func Equalf(t TestingT, expected, actual interface{}, msg string, args ...interface{})
- func Error(t TestingT, err error, msgAndArgs ...interface{})
- func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{})
- func ErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{})
- func ErrorContains(t TestingT, theError error, contains string, msgAndArgs ...interface{})
- func ErrorContainsf(t TestingT, theError error, contains string, msg string, args ...interface{})
- func ErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})
- func ErrorIsf(t TestingT, err error, target error, msg string, args ...interface{})
- func Errorf(t TestingT, err error, msg string, args ...interface{})
- func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, ...)
- func EventuallyWithT(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, ...)
- func EventuallyWithTf(t TestingT, condition func(collect *assert.CollectT), waitFor time.Duration, ...)
- func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, ...)
- func Exactly(t TestingT, expected interface{}, actual interface{}, ...)
- func Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, ...)
- func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{})
- func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{})
- func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{})
- func Failf(t TestingT, failureMessage string, msg string, args ...interface{})
- func False(t TestingT, value bool, msgAndArgs ...interface{})
- func Falsef(t TestingT, value bool, msg string, args ...interface{})
- func FileExists(t TestingT, path string, msgAndArgs ...interface{})
- func FileExistsf(t TestingT, path string, msg string, args ...interface{})
- func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
- func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
- func GreaterOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
- func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
- func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPError(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPErrorf(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPRedirect(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPStatusCode(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPStatusCodef(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPSuccess(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, ...)
- func Implements(t TestingT, interfaceObject interface{}, object interface{}, ...)
- func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, ...)
- func InDelta(t TestingT, expected interface{}, actual interface{}, delta float64, ...)
- func InDeltaMapValues(t TestingT, expected interface{}, actual interface{}, delta float64, ...)
- func InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, ...)
- func InDeltaSlice(t TestingT, expected interface{}, actual interface{}, delta float64, ...)
- func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, ...)
- func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, ...)
- func InEpsilon(t TestingT, expected interface{}, actual interface{}, epsilon float64, ...)
- func InEpsilonSlice(t TestingT, expected interface{}, actual interface{}, epsilon float64, ...)
- func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, ...)
- func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, ...)
- func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
- func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{})
- func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
- func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{})
- func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
- func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{})
- func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
- func IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{})
- func IsNotType(t TestingT, theType interface{}, object interface{}, msgAndArgs ...interface{})
- func IsNotTypef(t TestingT, theType interface{}, object interface{}, msg string, ...)
- func IsType(t TestingT, expectedType interface{}, object interface{}, ...)
- func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, ...)
- func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{})
- func JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{})
- func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{})
- func Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{})
- func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
- func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
- func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
- func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
- func Negative(t TestingT, e interface{}, msgAndArgs ...interface{})
- func Negativef(t TestingT, e interface{}, msg string, args ...interface{})
- func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, ...)
- func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, ...)
- func Nil(t TestingT, object interface{}, msgAndArgs ...interface{})
- func Nilf(t TestingT, object interface{}, msg string, args ...interface{})
- func NoDirExists(t TestingT, path string, msgAndArgs ...interface{})
- func NoDirExistsf(t TestingT, path string, msg string, args ...interface{})
- func NoError(t TestingT, err error, msgAndArgs ...interface{})
- func NoErrorf(t TestingT, err error, msg string, args ...interface{})
- func NoFileExists(t TestingT, path string, msgAndArgs ...interface{})
- func NoFileExistsf(t TestingT, path string, msg string, args ...interface{})
- func NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})
- func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, ...)
- func NotElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})
- func NotElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, ...)
- func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{})
- func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{})
- func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})
- func NotEqualValues(t TestingT, expected interface{}, actual interface{}, ...)
- func NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, ...)
- func NotEqualf(t TestingT, expected, actual interface{}, msg string, args ...interface{})
- func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{})
- func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{})
- func NotErrorIs(t TestingT, err error, target error, msgAndArgs ...interface{})
- func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{})
- func NotImplements(t TestingT, interfaceObject interface{}, object interface{}, ...)
- func NotImplementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, ...)
- func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{})
- func NotNilf(t TestingT, object interface{}, msg string, args ...interface{})
- func NotPanics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})
- func NotPanicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})
- func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})
- func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{})
- func NotSame(t TestingT, expected interface{}, actual interface{}, ...)
- func NotSamef(t TestingT, expected interface{}, actual interface{}, msg string, ...)
- func NotSubset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})
- func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, ...)
- func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{})
- func NotZerof(t TestingT, i interface{}, msg string, args ...interface{})
- func Panics(t TestingT, f assert.PanicTestFunc, msgAndArgs ...interface{})
- func PanicsWithError(t TestingT, errString string, f assert.PanicTestFunc, ...)
- func PanicsWithErrorf(t TestingT, errString string, f assert.PanicTestFunc, msg string, ...)
- func PanicsWithValue(t TestingT, expected interface{}, f assert.PanicTestFunc, ...)
- func PanicsWithValuef(t TestingT, expected interface{}, f assert.PanicTestFunc, msg string, ...)
- func Panicsf(t TestingT, f assert.PanicTestFunc, msg string, args ...interface{})
- func Positive(t TestingT, e interface{}, msgAndArgs ...interface{})
- func Positivef(t TestingT, e interface{}, msg string, args ...interface{})
- func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})
- func Regexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{})
- func Same(t TestingT, expected interface{}, actual interface{}, ...)
- func Samef(t TestingT, expected interface{}, actual interface{}, msg string, ...)
- func Subset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})
- func Subsetf(t TestingT, list interface{}, subset interface{}, msg string, ...)
- func True(t TestingT, value bool, msgAndArgs ...interface{})
- func Truef(t TestingT, value bool, msg string, args ...interface{})
- func WithinDuration(t TestingT, expected time.Time, actual time.Time, delta time.Duration, ...)
- func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, ...)
- func WithinRange(t TestingT, actual time.Time, start time.Time, end time.Time, ...)
- func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, ...)
- func YAMLEq(t TestingT, expected string, actual string, msgAndArgs ...interface{})
- func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{})
- func Zero(t TestingT, i interface{}, msgAndArgs ...interface{})
- func Zerof(t TestingT, i interface{}, msg string, args ...interface{})
- type Assertions
- func (a *Assertions) Equal(expected, actual interface{}, msgAndArgs ...interface{})
- func (a *Assertions) Equalf(expected, actual interface{}, msg string, args ...interface{})
- func (a *Assertions) NotEqual(expected, actual interface{}, msgAndArgs ...interface{})
- func (a *Assertions) NotEqualf(expected, actual interface{}, msg string, args ...interface{})
- type BoolAssertionFunc
- type ComparisonAssertionFunc
- type ErrorAssertionFunc
- type TestingT
- type ValueAssertionFunc
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 DirExistsf ¶
func ElementsMatch ¶
func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})
func ElementsMatchf ¶
func EqualError ¶
func EqualErrorf ¶
func EqualExportedValues ¶
func EqualExportedValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
func EqualExportedValuesf ¶
func EqualValues ¶
func EqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
func EqualValuesf ¶
func ErrorContains ¶
func ErrorContainsf ¶
func Eventually ¶
func EventuallyWithT ¶
func EventuallyWithTf ¶
func Eventuallyf ¶
func Exactly ¶
func Exactly(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
func FileExists ¶
func FileExistsf ¶
func GreaterOrEqual ¶
func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
func GreaterOrEqualf ¶
func HTTPBodyContains ¶
func HTTPBodyContainsf ¶
func HTTPBodyNotContains ¶
func HTTPBodyNotContainsf ¶
func HTTPErrorf ¶
func HTTPRedirect ¶
func HTTPRedirectf ¶
func HTTPStatusCode ¶
func HTTPStatusCodef ¶
func HTTPSuccess ¶
func HTTPSuccessf ¶
func Implements ¶
func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})
func Implementsf ¶
func InDeltaMapValues ¶
func InDeltaMapValuesf ¶
func InDeltaSlice ¶
func InDeltaSlicef ¶
func InEpsilonSlice ¶
func InEpsilonSlicef ¶
func InEpsilonf ¶
func IsDecreasing ¶
func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
func IsDecreasingf ¶
func IsIncreasing ¶
func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
func IsIncreasingf ¶
func IsNonDecreasing ¶
func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
func IsNonDecreasingf ¶
func IsNonIncreasing ¶
func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{})
func IsNonIncreasingf ¶
func IsNotType ¶
func IsNotType(t TestingT, theType interface{}, object interface{}, msgAndArgs ...interface{})
func IsNotTypef ¶
func IsType ¶
func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{})
func LessOrEqual ¶
func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
func LessOrEqualf ¶
func NoDirExists ¶
func NoDirExistsf ¶
func NoFileExists ¶
func NoFileExistsf ¶
func NotContains ¶
func NotContains(t TestingT, s interface{}, contains interface{}, msgAndArgs ...interface{})
func NotContainsf ¶
func NotElementsMatch ¶
func NotElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{})
func NotElementsMatchf ¶
func NotEqualValues ¶
func NotEqualValues(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
func NotEqualValuesf ¶
func NotErrorAs ¶
func NotErrorAsf ¶
func NotErrorIs ¶
func NotErrorIsf ¶
func NotImplements ¶
func NotImplements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{})
func NotImplementsf ¶
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 NotSame ¶
func NotSame(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
func NotSubset ¶
func NotSubset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})
func NotSubsetf ¶
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 Same ¶
func Same(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{})
func Subset ¶
func Subset(t TestingT, list interface{}, subset interface{}, msgAndArgs ...interface{})
func WithinDuration ¶
func WithinDurationf ¶
func WithinRange ¶
func WithinRangef ¶
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 ValueAssertionFunc ¶
type ValueAssertionFunc = upstream.ValueAssertionFunc
Click to show internal directories.
Click to hide internal directories.