testutils

package
v0.0.0-...-a448e87 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCode

func CheckCode(t *testing.T, expected, got int)

func CheckEqual

func CheckEqual(t *testing.T, expected, got interface{})

func ExecuteRequest

func ExecuteRequest(router *gin.Engine, method, url string, body io.Reader, format string) *httptest.ResponseRecorder

func Setup

func Setup() (db *gorm.DB, client *redis.Client)

func SetupDB

func SetupDB() *gorm.DB

func SetupRedis

func SetupRedis() *redis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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