mock_http

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPOperationMatcher added in v1.3.1

func NewHTTPOperationMatcher(op string) gomock.Matcher

func NewHTTPSimpleMatcher

func NewHTTPSimpleMatcher(method, url string) gomock.Matcher

func SuccessResponse

func SuccessResponse(body string) *http.Response

Types

type MockRoundTripper

type MockRoundTripper struct {
	// contains filtered or unexported fields
}

Mock of RoundTripper interface

func NewMockRoundTripper

func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper

func (*MockRoundTripper) EXPECT

func (_m *MockRoundTripper) EXPECT() *_MockRoundTripperRecorder

func (*MockRoundTripper) RoundTrip

func (_m *MockRoundTripper) RoundTrip(_param0 *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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