package
Version:
v0.0.67
Opens a new window with list of versions in this module.
Published: Jul 23, 2024
License: Apache-2.0
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(tb testing.TB, expected, actual interface{}) (success bool)
-
func Error(tb testing.TB, err error) (success bool)
-
func ErrorContains(tb testing.TB, err error, substr string) (success bool)
-
func ErrorIs(tb testing.TB, err, target error) (success bool)
-
func False(tb testing.TB, value bool) (success bool)
-
func Nil(tb testing.TB, value interface{}) (success bool)
-
func NoError(tb testing.TB, err error) (success bool)
-
func NotEqual(tb testing.TB, expected, actual interface{}) (success bool)
-
func NotNil(tb testing.TB, value interface{}) (success bool)
-
func True(tb testing.TB, value bool) (success bool)
func Equal(tb testing.TB, expected, actual interface{}) (success bool)
Equal asserts that expected and actual are deeply equal.
Error asserts that err is not nil.
ErrorContains asserts that err contains substr.
ErrorIs asserts that err is target.
False asserts that value is false.
Nil asserts that value is nil.
NoError asserts that err is nil.
func NotEqual(tb testing.TB, expected, actual interface{}) (success bool)
NotEqual asserts that expected and actual are not deeply equal.
NotNil asserts that value is not nil.
True asserts that value is true.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.