package
Version:
v1.5.2
Opens a new window with list of versions in this module.
Published: Feb 11, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equals[T any](t TB, a, b T)
-
func Error(t TB, err error)
-
func ErrorIs(t TB, got, want error)
-
func FatalIf(t TB, c bool, f string, args ...any)
-
func JSONMarshalsTo[T any](t TB, obj T, want string)
-
func Must[T any](t T, err error) T
-
func OK(t TB, err error)
-
func Panic(t TB, f func())
-
type TB
func Equals[T any](t TB, a, b T)
func ErrorIs(t TB, got, want error)
JSONMarshalsTo asserts that obj marshals as JSON to the given string, allowing for formatting differences and
displaying an easy-to-read diff.
func Panic(t TB, f func())
type TB interface {
Helper()
Fatalf(format string, args ...any)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.