helpertest

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeDNSRecord

func BeDNSRecord(domain string, dnsType uint16, ttl uint32, answer string) types.GomegaMatcher

func DoGetRequest

func DoGetRequest(url string, fn func(w http.ResponseWriter, r *http.Request)) (code int, body *bytes.Buffer)

func TempFile

func TempFile(data string) *os.File

creates temp file with passed data

func TestServer

func TestServer(data string) *httptest.Server

creates temp http server with passed data

Types

This section is empty.

Jump to

Keyboard shortcuts

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