assert

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t *testing.T, s, substring string)

Contains asserts that s contains substring.

func Equal

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

Equal asserts that two are equal.

func Error

func Error(t *testing.T, err error)

Error asserts that err is an error.

func Greater

func Greater(t *testing.T, a, b int)

Greater asserts that a > b.

func NoError

func NoError(t *testing.T, err error)

NoError asserts that err is not an error.

func Redirects

func Redirects(t *testing.T, r *httptest.ResponseRecorder, url string, code int)

Redirects asserts that response redirects to the url with the provided code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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