test

package
v0.0.0-...-7c2803f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BodyEquals

func BodyEquals(t assert.TestingT, obj interface{}, recorder *httptest.ResponseRecorder)

BodyEquals asserts the content from the response recorder with the encoded json of the provided instance.

func JSONEquals

func JSONEquals(t assert.TestingT, obj interface{}, expected string)

JSONEquals asserts the content of the string with the encoded json of the provided instance.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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