mocks

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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 MockRoundTripper

type MockRoundTripper struct {
	mock.Mock
}

MockRoundTripper is an autogenerated mock type for the RoundTripper type

func NewMockRoundTripper

func NewMockRoundTripper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRoundTripper

NewMockRoundTripper creates a new instance of MockRoundTripper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRoundTripper) EXPECT

func (*MockRoundTripper) RoundTrip

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

RoundTrip provides a mock function with given fields: _a0

type MockRoundTripper_Expecter

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

func (*MockRoundTripper_Expecter) RoundTrip

func (_e *MockRoundTripper_Expecter) RoundTrip(_a0 interface{}) *MockRoundTripper_RoundTrip_Call

RoundTrip is a helper method to define mock.On call

  • _a0 *http.Request

type MockRoundTripper_RoundTrip_Call

type MockRoundTripper_RoundTrip_Call struct {
	*mock.Call
}

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

func (*MockRoundTripper_RoundTrip_Call) Return

func (*MockRoundTripper_RoundTrip_Call) Run

func (*MockRoundTripper_RoundTrip_Call) RunAndReturn

Jump to

Keyboard shortcuts

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