testassert

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expected, actual interface{})

Equal reports a test failure if expected != actual (using Go's ==).

func HTTPBodyContainsf

func HTTPBodyContainsf(t *testing.T, handler http.HandlerFunc, method, urlStr string, values url.Values, expected string, msgAndArgs ...interface{})

HTTPBodyContainsf sends a request through handler and checks that the response body contains the expected substring.

func HTTPBodyNotContainsf

func HTTPBodyNotContainsf(t *testing.T, handler http.HandlerFunc, method, urlStr string, values url.Values, expected string, msgAndArgs ...interface{})

HTTPBodyNotContainsf sends a request through handler and checks that the response body does not contain the expected substring.

func Nil

func Nil(t *testing.T, value interface{})

Nil reports a test failure if value is not nil.

func NotNil

func NotNil(t *testing.T, value interface{})

NotNil reports a test failure if value is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL