test

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCode

func CheckCode(t *testing.T, resp *http.Response, expected int) *http.Response

CheckCode checks response code

func Code

func Code(t *testing.T, tEcho *echo.Echo, req *http.Request, code int) *httptest.ResponseRecorder

func Ctx

func Ctx(t *testing.T) context.Context

func Decode

func Decode[T any](t *testing.T, resp *http.Response) T

Decode decodes response body to json type

func Invoke

func Invoke(t *testing.T, cl *http.Client, r *http.Request) *http.Response

Invoke makes a request call

func RStr

func RStr(t *testing.T, r io.Reader) string

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