mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHttpClient

type MockHttpClient struct {
	mock.Mock
}

MockHttpClient is an autogenerated mock type for the HttpClient type

func NewMockHttpClient

func NewMockHttpClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHttpClient

NewMockHttpClient creates a new instance of MockHttpClient. 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 (*MockHttpClient) CloseIdleConnections added in v0.4.0

func (_mock *MockHttpClient) CloseIdleConnections()

CloseIdleConnections provides a mock function for the type MockHttpClient

func (*MockHttpClient) Do

func (_mock *MockHttpClient) Do(request *http.Request) (*http.Response, error)

Do provides a mock function for the type MockHttpClient

func (*MockHttpClient) EXPECT

type MockHttpClient_CloseIdleConnections_Call added in v0.4.0

type MockHttpClient_CloseIdleConnections_Call struct {
	*mock.Call
}

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

func (*MockHttpClient_CloseIdleConnections_Call) Return added in v0.4.0

func (*MockHttpClient_CloseIdleConnections_Call) Run added in v0.4.0

func (*MockHttpClient_CloseIdleConnections_Call) RunAndReturn added in v0.4.0

type MockHttpClient_Do_Call

type MockHttpClient_Do_Call struct {
	*mock.Call
}

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

func (*MockHttpClient_Do_Call) Return

func (_c *MockHttpClient_Do_Call) Return(response *http.Response, err error) *MockHttpClient_Do_Call

func (*MockHttpClient_Do_Call) Run

func (_c *MockHttpClient_Do_Call) Run(run func(request *http.Request)) *MockHttpClient_Do_Call

func (*MockHttpClient_Do_Call) RunAndReturn

func (_c *MockHttpClient_Do_Call) RunAndReturn(run func(request *http.Request) (*http.Response, error)) *MockHttpClient_Do_Call

type MockHttpClient_Expecter

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

func (*MockHttpClient_Expecter) CloseIdleConnections added in v0.4.0

CloseIdleConnections is a helper method to define mock.On call

func (*MockHttpClient_Expecter) Do

func (_e *MockHttpClient_Expecter) Do(request interface{}) *MockHttpClient_Do_Call

Do is a helper method to define mock.On call

  • request *http.Request

Jump to

Keyboard shortcuts

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