tracrtest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockHttpRequest

func MockHttpRequest(method, url string, body io.Reader, params url.Values, header http.Header) *http.Request

MockHttpRequest - helper, to build a request in tests

e.g. 	req := tracrtest.MockHttpRequest("GET", "/example/", nil, url.Values{
		"blah": {"blahblah"},
	}, header)

nb: Note the url.Values extra braces, as a key can have multiple values

Types

This section is empty.

Jump to

Keyboard shortcuts

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