mocks

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundTripperMock

type RoundTripperMock struct {
	mock.Mock
}

RoundTripperMock is an autogenerated mock type for the RoundTripper type

func NewRoundTripperMock

func NewRoundTripperMock(t mockConstructorTestingTNewRoundTripperMock) *RoundTripperMock

NewRoundTripperMock creates a new instance of RoundTripperMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RoundTripperMock) EXPECT

func (*RoundTripperMock) RoundTrip

func (_m *RoundTripperMock) RoundTrip(_a0 *http.Request) (*http.Response, error)

RoundTrip provides a mock function with given fields: _a0

type RoundTripperMock_Expecter

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

func (*RoundTripperMock_Expecter) RoundTrip

func (_e *RoundTripperMock_Expecter) RoundTrip(_a0 interface{}) *RoundTripperMock_RoundTrip_Call

RoundTrip is a helper method to define mock.On call

  • _a0 *http.Request

type RoundTripperMock_RoundTrip_Call

type RoundTripperMock_RoundTrip_Call struct {
	*mock.Call
}

RoundTripperMock_RoundTrip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoundTrip'

func (*RoundTripperMock_RoundTrip_Call) Return

func (*RoundTripperMock_RoundTrip_Call) Run

func (*RoundTripperMock_RoundTrip_Call) RunAndReturn

Jump to

Keyboard shortcuts

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