package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Oct 4, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Contains(t *testing.T, s, substring string)
-
func Equal(t *testing.T, expected, actual interface{})
-
func Error(t *testing.T, err error)
-
func Greater(t *testing.T, a, b int)
-
func NoError(t *testing.T, err error)
-
func Redirects(t *testing.T, r *httptest.ResponseRecorder, url string, code int)
Contains asserts that s contains substring.
func Equal(t *testing.T, expected, actual interface{})
Equal asserts that two are equal.
Error asserts that err is an error.
Greater asserts that a > b.
NoError asserts that err is not an error.
Redirects asserts that response redirects to the url with the provided code.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.