mock_http

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2015 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 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