package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 14, 2024
License: MIT
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 Equal[T any](t *testing.T, a, b T)
-
func ErrorContains(t *testing.T, err error, str string)
-
func ErrorIs(t *testing.T, err error, target error)
-
func IsNil(t *testing.T, obj any)
-
func NotEqual[T any](t *testing.T, a T, b T)
-
func Panics(t *testing.T, f func())
Equal verifies equality of two objects.
ErrorContains checks whether the given error contains the specified string.
ErrorIs checks whether any error in err's tree matches target.
IsNil verifies that the object is nil.
NotEqual verifies objects are not equal.
Panics checks whether the given function panics.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.