Versions in this module Expand all Collapse all v1 v1.0.0 Apr 9, 2025 v0 v0.2.1 Apr 24, 2025 v0.2.0 Apr 23, 2025 v0.1.5 Apr 9, 2025 Changes in this version + var DiffsEnabled = true + var StackTracesEnabled = false + func Contains(t testingT, collection any, element any, msgAndArgs ...any) bool + func ContainsKey[K comparable, V any](t testingT, m map[K]V, key K, msgAndArgs ...any) bool + func ElementsMatch[T comparable](t testingT, listA []T, listB []T, msgAndArgs ...any) bool + func Empty(t testingT, data any, msgAndArgs ...any) bool + func Equal[T any](t testingT, got T, want T, msgAndArgs ...any) bool + func Error(t testingT, got error, msgAndArgs ...any) bool + func ErrorAs(t testingT, got error, targetPtr any, msgAndArgs ...any) bool + func ErrorIs(t testingT, got error, target error, msgAndArgs ...any) bool + func False(t testingT, got bool, msgAndArgs ...any) bool + func GreaterOrEqual[T cmp.Ordered](t testingT, got T, threshold T, msgAndArgs ...any) bool + func Greater[T cmp.Ordered](t testingT, got T, threshold T, msgAndArgs ...any) bool + func InDelta[T ~float32 | ~float64](t testingT, got T, want T, delta T, msgAndArgs ...any) bool + func Len(t testingT, data any, expectedLen int, msgAndArgs ...any) bool + func LessOrEqual[T cmp.Ordered](t testingT, got T, threshold T, msgAndArgs ...any) bool + func Less[T cmp.Ordered](t testingT, got T, threshold T, msgAndArgs ...any) bool + func Negative[T cmp.Ordered](t testingT, got T, msgAndArgs ...any) bool + func Nil(t testingT, data any, msgAndArgs ...any) bool + func NoError(t testingT, got error, msgAndArgs ...any) bool + func NotContains(t testingT, collection any, element any, msgAndArgs ...any) bool + func NotContainsKey[K comparable, V any](t testingT, m map[K]V, key K, msgAndArgs ...any) bool + func NotEmpty(t testingT, data any, msgAndArgs ...any) bool + func NotEqual[T any](t testingT, got T, want T, msgAndArgs ...any) bool + func NotInDelta[T ~float32 | ~float64](t testingT, got T, want T, delta T, msgAndArgs ...any) bool + func NotNil(t testingT, data any, msgAndArgs ...any) bool + func NotPanics(t testingT, f func(), msgAndArgs ...any) bool + func NotZero(t testingT, data any, msgAndArgs ...any) bool + func Panics(t testingT, f func(), msgAndArgs ...any) (didPanic bool, panicValue any) + func Positive[T cmp.Ordered](t testingT, got T, msgAndArgs ...any) bool + func TimeAfter(t testingT, got, threshold time.Time, msgAndArgs ...any) bool + func TimeBefore(t testingT, got, threshold time.Time, msgAndArgs ...any) bool + func TimeEqual(t testingT, got, want time.Time, msgAndArgs ...any) bool + func TimeEqualWithPrecision(t testingT, got, want time.Time, precision time.Duration, msgAndArgs ...any) bool + func True(t testingT, got bool, msgAndArgs ...any) bool + func WithinDuration(t testingT, got, want time.Time, delta time.Duration, msgAndArgs ...any) bool + func WithinTime(t testingT, got time.Time, start, end time.Time, msgAndArgs ...any) bool + func Zero(t testingT, data any, msgAndArgs ...any) bool + type AssertionContext struct + File string + Function string + Line int + func NewAssertionContext(skip int) *AssertionContext + func (ctx *AssertionContext) FileInfo() string + type AssertionError struct + ComparisonValue assertionValue + Details []string + Diff string + Error error + ExtraValues []assertionValue + Message string + PrimaryValue assertionValue + Stack string + func (ae *AssertionError) Format(ctx *AssertionContext) string