tests

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureRequestWithTLS added in v0.1.42

func CaptureRequestWithTLS(caller HTTPClientConsumer, asserter HTTPRequestAsserter, response ...[]byte) error

func CaptureStdout

func CaptureStdout(fromThis func() error) (string, error)

CaptureStdout captures prints to the standard output from the function :fromThis. :fromThis should return an error to indicate whether the function call was a success; if the error is non-empty, the returned string will be empty (but an empty string with an error indicates a blank input)

func HTTPRequestAsserterNoOp added in v0.1.42

func HTTPRequestAsserterNoOp(_ *http.Request) error

Types

type HTTPClientConsumer added in v0.1.42

type HTTPClientConsumer func(request.Doer) error

type HTTPRequestAsserter added in v0.1.42

type HTTPRequestAsserter func(*http.Request) error

Jump to

Keyboard shortcuts

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