testutil

package
v0.0.0-...-a87362d Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJSON

func AssertJSON(t *testing.T, want, got []byte)

func AssertResponse

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

func LoadFile

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

func OpenDBForTest

func OpenDBForTest(t *testing.T) *sqlx.DB

func OpenRedisForTest

func OpenRedisForTest(t *testing.T) *redis.Client

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