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 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
Click to show internal directories.
Click to hide internal directories.