testutil

package
v0.0.0-...-82fd2f4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJSON

func AssertJSON(t *testing.T, wantJson, gotJson []byte)

Compare json data

func AssertResponse

func AssertResponse(t *testing.T, got *http.Response, wantStatus int, wantBody []byte)

Check if http response status code and response body have expected values.

func LoadFile

func LoadFile(t *testing.T, path string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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