Versions in this module Expand all Collapse all v1 v1.0.1 May 8, 2026 Changes in this version + func AssertEmptyT(t *testing.T) func(any, string) + func AssertEqualT(t *testing.T) func(any, any, string) + func AssertErrorT(t *testing.T) func(error, string) + func AssertFalseT(t *testing.T) func(bool, string) + func AssertNoErrorT(t *testing.T) func(error, string) + func AssertNotEmptyT(t *testing.T) func(any, string) + func AssertNotEqualT(t *testing.T) func(any, any, string) + func AssertTrueT(t *testing.T) func(bool, string) + func CallerInfo() []string + func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool + func Conditionf(t TestingT, comp Comparison, msg string, args ...any) bool + func Contains(t TestingT, s, contains any, msgAndArgs ...any) bool + func Containsf(t TestingT, s any, contains any, msg string, args ...any) bool + func Empty(t TestingT, object any, msgAndArgs ...any) bool + func Emptyf(t TestingT, object any, msg string, args ...any) bool + func Equal(t TestingT, expected, actual any, msgAndArgs ...any) bool + func EqualError(t TestingT, theError error, errString string, msgAndArgs ...any) bool + func EqualErrorf(t TestingT, theError error, errString string, msg string, args ...any) bool + func EqualExportedValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func EqualExportedValuesf(t TestingT, expected any, actual any, msg string, args ...any) bool + func EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func EqualValuesf(t TestingT, expected any, actual any, msg string, args ...any) bool + func Equalf(t TestingT, expected any, actual any, msg string, args ...any) bool + func Error(t TestingT, err error, msgAndArgs ...any) bool + func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) bool + func ErrorAsf(t TestingT, err error, target any, msg string, args ...any) bool + func ErrorContains(t TestingT, theError error, contains string, msgAndArgs ...any) bool + func ErrorContainsf(t TestingT, theError error, contains string, msg string, args ...any) bool + func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool + func ErrorIsf(t TestingT, err error, target error, msg string, args ...any) bool + func Errorf(t TestingT, err error, msg string, args ...any) bool + func Exactly(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool + func Exactlyf(t TestingT, expected any, actual any, msg string, args ...any) bool + func Fail(t TestingT, failureMessage string, msgAndArgs ...any) bool + func FailNow(t TestingT, failureMessage string, msgAndArgs ...any) bool + func FailNowf(t TestingT, failureMessage string, msg string, args ...any) bool + func Failf(t TestingT, failureMessage string, msg string, args ...any) bool + func False(t TestingT, value bool, msgAndArgs ...any) bool + func Falsef(t TestingT, value bool, msg string, args ...any) bool + func IsType(t TestingT, expectedType any, object any, msgAndArgs ...any) bool + func IsTypef(t TestingT, expectedType any, object any, msg string, args ...any) bool + func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{}) bool + func MustPanic(t *testing.T, msg string, f func()) + func Nil(t TestingT, object any, msgAndArgs ...any) bool + func Nilf(t TestingT, object any, msg string, args ...any) bool + func NoError(t TestingT, err error, msgAndArgs ...any) bool + func NoErrorf(t TestingT, err error, msg string, args ...any) bool + func NotContains(t TestingT, s, contains any, msgAndArgs ...any) bool + func NotContainsf(t TestingT, s any, contains any, msg string, args ...any) bool + func NotEmpty(t TestingT, object any, msgAndArgs ...any) bool + func NotEmptyf(t TestingT, object any, msg string, args ...any) bool + func NotEqual(t TestingT, expected, actual any, msgAndArgs ...any) bool + func NotEqualValues(t TestingT, expected, actual any, msgAndArgs ...interface{}) bool + func NotEqualValuesf(t TestingT, expected any, actual any, msg string, args ...any) bool + func NotEqualf(t TestingT, expected any, actual any, msg string, args ...any) bool + func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) bool + func NotErrorAsf(t TestingT, err error, target any, msg string, args ...any) bool + func NotErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool + func NotErrorIsf(t TestingT, err error, target error, msg string, args ...any) bool + func NotNil(t TestingT, object any, msgAndArgs ...any) bool + func NotNilf(t TestingT, object any, msg string, args ...any) bool + func NotPanics(t TestingT, f PanicTestFunc, msgAndArgs ...any) bool + func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...any) bool + func NotSame(t TestingT, expected, actual any, msgAndArgs ...any) bool + func NotSamef(t TestingT, expected any, actual any, msg string, args ...any) bool + func NotSubset(t TestingT, list, subset any, msgAndArgs ...any) (ok bool) + func NotSubsetf(t TestingT, list any, subset any, msg string, args ...any) bool + func NotZero(t TestingT, i any, msgAndArgs ...any) bool + func NotZerof(t TestingT, i any, msg string, args ...any) bool + func ObjectsAreEqual(expected, actual any) bool + func ObjectsAreEqualValues(expected, actual any) bool + func ObjectsExportedFieldsAreEqual(expected, actual any) bool + func Panics(t TestingT, f PanicTestFunc, msgAndArgs ...any) bool + func PanicsWithError(t TestingT, errString string, f PanicTestFunc, msgAndArgs ...any) bool + func PanicsWithErrorf(t TestingT, errString string, f PanicTestFunc, msg string, args ...any) bool + func PanicsWithValue(t TestingT, expected any, f PanicTestFunc, msgAndArgs ...any) bool + func PanicsWithValuef(t TestingT, expected any, f PanicTestFunc, msg string, args ...any) bool + func Panicsf(t TestingT, f PanicTestFunc, msg string, args ...any) bool + func Same(t TestingT, expected, actual any, msgAndArgs ...any) bool + func Samef(t TestingT, expected any, actual any, msg string, args ...any) bool + func Subset(t TestingT, list, subset any, msgAndArgs ...any) (ok bool) + func Subsetf(t TestingT, list any, subset any, msg string, args ...any) bool + func True(t TestingT, value bool, msgAndArgs ...any) bool + func Truef(t TestingT, value bool, msg string, args ...any) bool + func WithinDuration(t TestingT, expected, actual time.Time, delta time.Duration, ...) bool + func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, ...) bool + func WithinRange(t TestingT, actual, start, end time.Time, msgAndArgs ...interface{}) bool + func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, ...) bool + func Zero(t TestingT, i any, msgAndArgs ...any) bool + func Zerof(t TestingT, i any, msg string, args ...any) bool + type BoolAssertionFunc func(TestingT, bool, ...any) bool + type Comparison func() (success bool) + type ComparisonAssertionFunc func(TestingT, any, any, ...any) bool + type ErrorAssertionFunc func(TestingT, error, ...any) bool + type PanicAssertionFunc = func(t TestingT, f PanicTestFunc, msgAndArgs ...any) bool + type PanicTestFunc func() + type TestingT interface + Errorf func(format string, args ...any) + type ValueAssertionFunc func(TestingT, any, ...any) bool