testutils

package
v1.2.0-grpc-to-sqlite-... Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 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