test

package
v1.28.0-mobile-data-set.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTraceRequest

func NewTraceRequest() string

func NewTraceSession

func NewTraceSession() string

Types

type RequestMutator added in v1.27.0

type RequestMutator struct {
	*test.Mock
	MutateRequestInvocations int
	MutateRequestInputs      []*http.Request
	MutateRequestOutputs     []error
}

func NewRequestMutator added in v1.27.0

func NewRequestMutator() *RequestMutator

func (*RequestMutator) Expectations added in v1.27.0

func (r *RequestMutator) Expectations()

func (*RequestMutator) MutateRequest added in v1.27.0

func (r *RequestMutator) MutateRequest(request *http.Request) error

type ResponseInspector added in v1.27.0

type ResponseInspector struct {
	InspectResponseInvocations int
	InspectResponseInputs      []*http.Response
	InspectResponseStub        func(res *http.Response) error
	InspectResponseOutputs     []error
	InspectResponseOutput      *error
}

func NewResponseInspector added in v1.27.0

func NewResponseInspector() *ResponseInspector

func (*ResponseInspector) AssertOutputsEmpty added in v1.27.0

func (r *ResponseInspector) AssertOutputsEmpty()

func (*ResponseInspector) InspectResponse added in v1.27.0

func (r *ResponseInspector) InspectResponse(res *http.Response) error

Jump to

Keyboard shortcuts

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