testutil

package
v0.0.0-...-0c71d2e Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 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

test input data (testing want value) from file.

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
fixture is dummy data on previous testing
fixture is dummy data on previous testing

Jump to

Keyboard shortcuts

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