test

package
v1.29.0-mobile.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObjectFromCondition added in v1.29.0

func NewObjectFromCondition(datum *request.Condition, objectFormat test.ObjectFormat) map[string]interface{}

func NewTraceRequest

func NewTraceRequest() string

func NewTraceSession

func NewTraceSession() string

func RandomCondition added in v1.29.0

func RandomCondition() *request.Condition

func RandomRevision added in v1.29.0

func RandomRevision() int

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