responsetest

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertError

func AssertError(t *testing.T, resp *httptest.ResponseRecorder) (err error)

AssertError will assert error

Example
Output:

func AssertErrorMessage

func AssertErrorMessage(t *testing.T, resp *httptest.ResponseRecorder, msg string) (err error)

AssertErrorMessage will assert error message

Example
Output:

func AssertStatusEqual

func AssertStatusEqual(t *testing.T, resp *httptest.ResponseRecorder, status int)

AssertStatusEqual will assert equal status

Types

This section is empty.

Jump to

Keyboard shortcuts

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