package
Version:
v0.0.0-...-1cfd4fd
Opens a new window with list of versions in this module.
Published: Jun 13, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package assert provides functions to assert a condition in tests
-
func DeepEqual(t *testing.T, a, b interface{}, message string)
-
func Equal(t *testing.T, a, b interface{}, message string)
-
func EqualJSON(t *testing.T, a, b, message string)
-
func Equalf(t *testing.T, a, b interface{}, message string)
-
func NotEqual(t *testing.T, a, b interface{}, message string)
-
func NotEqualf(t *testing.T, a, b interface{}, message string)
-
func StatusCodeEquals(t *testing.T, res *http.Response, expected int, message string)
DeepEqual fails a test if the actual does not deeply equal the expected
Equal errors a test if the actual does not match the expected
EqualJSON asserts that two JSON strings are equal
Equalf fails a test if the actual does not match the expected
NotEqual fails a test if the actual matches the expected
NotEqualf fails a test if the actual matches the expected
StatusCodeEquals asserts that the reponse's status code is equal to the
expected
Source Files
¶
Click to show internal directories.
Click to hide internal directories.