mock

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID         = "mockID"
	Role       = "mock_role"
	Token      = "mock-token"
	Secret     = "mockSecret"
	Addr       = "mock.addr"
	Path       = "mock/path"
	URL        = "https://" + Addr + "/" + Path
	File       = "mock.file"
	Bucket     = "mock-bucket"
	Collection = "mockcollection"
	Topic      = "mocktopic"
)

testing constants, used for consistency across tests

Variables

View Source
var Client = client{nil}

Client expl

View Source
var ClientForbidden = client{errors.New("http error, status 403: forbidden")}

ClientForbidden expl

Functions

func Body

func Body(content string) *bytes.Buffer

Body expl

func Request

func Request(t *testing.T, method, url, body string, header ...string) *http.Request

Request expl

Types

This section is empty.

Jump to

Keyboard shortcuts

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