gotest

package
v0.0.0-...-d12d41b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map2JsonReader

func Map2JsonReader(mp map[string]interface{}) *bytes.Reader

Types

type TP

type TP struct {
	Req    *http.Request
	Router *gin.Engine
	W      *httptest.ResponseRecorder
}

func New

func New(router *gin.Engine, method, url string, body io.Reader) *TP

func (*TP) AddCookies

func (tp *TP) AddCookies(cookies []*http.Cookie) *TP

func (*TP) B

func (tp *TP) B() app.Response

func (*TP) Send

func (tp *TP) Send() *TP

Jump to

Keyboard shortcuts

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