The highest tagged major version is
v3.
package
Version:
v2.8.4
Opens a new window with list of versions in this module.
Published: Jul 20, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equal(t *testing.T, expected, actual interface{}, msg ...interface{})
-
func Error(t *testing.T, err error, msg ...interface{})
-
func Fail(t *testing.T, msg ...interface{})
-
func False(t *testing.T, v bool, msg ...interface{})
-
func IsType(t *testing.T, expected, actual interface{}, msg ...interface{})
-
func Nil(t *testing.T, v interface{}, msg ...interface{})
-
func NoError(t *testing.T, err error, msg ...interface{})
-
func NotNil(t *testing.T, v interface{}, msg ...interface{})
-
func True(t *testing.T, v bool, msg ...interface{})
func Equal(
t *testing.T,
expected, actual interface{},
msg ...interface{},
)
Equal asserts expected and actual are equal.
Error asserts err is an error.
func Fail(t *testing.T, msg ...interface{})
Fail marks the function as having failed but continues execution.
func IsType(
t *testing.T,
expected, actual interface{},
msg ...interface{},
)
IsType asserts expected and actual are of the same type.
func Nil(t *testing.T, v interface{}, msg ...interface{})
Nil asserts v is nil.
NoError asserts err is not an error.
func NotNil(t *testing.T, v interface{}, msg ...interface{})
NotNil asserts v is not nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.