helpers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequestCapturingTestServer

func MakeRequestCapturingTestServer(responseCode int, response []byte, request *http.Request) *httptest.Server

MakeRequestCapturingTestServer creates an api server that captures the request object

func MakeTestServer

func MakeTestServer(responseCode int, body []byte) *httptest.Server

MakeTestServer creates an api server for testing

func MakeTestServerWithMultipleResponses added in v0.0.3

func MakeTestServerWithMultipleResponses(responseCode int, responses [][]byte) *httptest.Server

MakeTestServerWithMultipleResponses creates an api server for testing with multiple responses

Types

This section is empty.

Jump to

Keyboard shortcuts

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