Documentation
¶
Overview ¶
Package test used for process tests
Index ¶
- func AssertNilError(t *testing.T, err error)
- func AssertNoDiff(t *testing.T, want, got any)
- func AssertType(t *testing.T, v any, targetType string)
- func AssertWrite(t *testing.T, w io.Writer, data []byte)
- func MapsStringBoolEqual(a, b map[string]bool) bool
- func Ptr[T any](v T) *T
- func TestFormValues(t *testing.T, r *http.Request, values values)
- func TestHeader(t *testing.T, r *http.Request, header string, want string)
- func TestMethod(t *testing.T, r *http.Request, want string)
- func TestURLParseError(t *testing.T, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNilError ¶ added in v1.9.0
func AssertNoDiff ¶ added in v1.9.0
func MapsStringBoolEqual ¶
MapsStringBoolEqual check if two maps are equal
func Ptr ¶ added in v1.9.0
func Ptr[T any](v T) *T
Ptr is a helper routine that allocates a new T value to store v and returns a pointer to it.
func TestFormValues ¶ added in v1.9.0
func TestHeader ¶ added in v1.9.0
func TestURLParseError ¶ added in v1.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.