testing

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(controller api.Controller, user *api.ExternalUser, path string, params interface{}) (*httptest.ResponseRecorder, error)

func Get

func Get(controller api.Controller, user *api.ExternalUser, path string, params interface{}) (*httptest.ResponseRecorder, error)

func GetDelete

func GetDelete(controller api.Controller, user *api.ExternalUser, method, path string, params interface{}) (*httptest.ResponseRecorder, error)

func Post

func Post(controller api.Controller, user *api.ExternalUser, path string, data interface{}) (*httptest.ResponseRecorder, error)

func PostPut

func PostPut(controller api.Controller, user *api.ExternalUser, method, path string, data interface{}) (*httptest.ResponseRecorder, error)

func Put

func Put(controller api.Controller, user *api.ExternalUser, path string, data interface{}) (*httptest.ResponseRecorder, error)

func Request

func Request(controller api.Controller, user *api.ExternalUser, reader *bytes.Reader, method, path string) (*gin.Engine, *http.Request, error)

func Router

func Router(controller api.Controller, decorator gin.HandlerFunc) (*gin.Engine, error)

func Serve

func Serve(request *http.Request, router *gin.Engine) (*httptest.ResponseRecorder, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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