mock_http

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_http is a generated GoMock package.

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
}

MockRoundTripper is a mock of RoundTripper interface

func NewMockRoundTripper

func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper

NewMockRoundTripper creates a new mock instance

func (*MockRoundTripper) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(arg0 *http.Request) (*http.Response, error)

RoundTrip mocks base method

type MockRoundTripperMockRecorder added in v1.17.3

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

MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper

func (*MockRoundTripperMockRecorder) RoundTrip added in v1.17.3

func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 interface{}) *gomock.Call

RoundTrip indicates an expected call of RoundTrip

Jump to

Keyboard shortcuts

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