package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 25, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equal[T comparable](t *testing.T, expected, target T)
-
func Error(t *testing.T, err error)
-
func ErrorIs(t *testing.T, err, target error)
-
func ErrorIsNot(t *testing.T, err, target error)
-
func False(t *testing.T, val bool)
-
func NoError(t *testing.T, err error)
-
func True(t *testing.T, val bool)
Error was added to avoid to use external dependencies for mocking
ErrorIs asserts that at least one of the errors in err's chain matches target.
This is a wrapper for errors.Is.
False was added to avoid to use external dependencies for mocking
NoError was added to avoid to use external dependencies for mocking
True was added to avoid to use external dependencies for mocking
Source Files
¶
Click to show internal directories.
Click to hide internal directories.