testutils

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestResponse

type TestResponse struct {
	Res *http.Response
}

TestResponse wrapper for http.Response.

func (*TestResponse) RequireOK

func (r *TestResponse) RequireOK(t *testing.T)

RequireOK check that response code is 200 OK.

func (*TestResponse) RequireTooEarly

func (r *TestResponse) RequireTooEarly(t *testing.T)

RequireTooEarly check that response code is 429 Too Early.

func (*TestResponse) RequireUnmarshal

func (r *TestResponse) RequireUnmarshal(t *testing.T, dst interface{})

RequireUnmarshal try unmarshal response body to given struct.

Jump to

Keyboard shortcuts

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