test

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: GPL-3.0 Imports: 10 Imported by: 0 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, 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