testhelper

package
v0.0.0-...-83794d4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformRequest

func PerformRequest(r http.Handler, method, path string, header http.Header, body ...io.Reader) *httptest.ResponseRecorder

PerformRequest router test

func PerformRequestJSON

func PerformRequestJSON(r http.Handler, method, path string, data interface{}, header ...http.Header) *httptest.ResponseRecorder

PerformRequestJSON 使用 interface{} 作为json参数,在函数内部去json Marshal

Types

This section is empty.

Jump to

Keyboard shortcuts

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