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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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