mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: AGPL-3.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 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) EXPECT

func (*MockHTTPClient) Get

func (_mock *MockHTTPClient) Get(requestURL string, cfg ...client.Config) (*client.Response, error)

Get provides a mock function for the type MockHTTPClient

func (*MockHTTPClient) Post

func (_mock *MockHTTPClient) Post(requestURL string, cfg ...client.Config) (*client.Response, error)

Post provides a mock function for the type MockHTTPClient

type MockHTTPClient_Expecter

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

func (*MockHTTPClient_Expecter) Get

func (_e *MockHTTPClient_Expecter) Get(requestURL any, cfg ...any) *MockHTTPClient_Get_Call

Get is a helper method to define mock.On call

  • requestURL string
  • cfg ...client.Config

func (*MockHTTPClient_Expecter) Post

func (_e *MockHTTPClient_Expecter) Post(requestURL any, cfg ...any) *MockHTTPClient_Post_Call

Post is a helper method to define mock.On call

  • requestURL string
  • cfg ...client.Config

type MockHTTPClient_Get_Call

type MockHTTPClient_Get_Call struct {
	*mock.Call
}

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

func (*MockHTTPClient_Get_Call) Return

func (*MockHTTPClient_Get_Call) Run

func (_c *MockHTTPClient_Get_Call) Run(run func(requestURL string, cfg ...client.Config)) *MockHTTPClient_Get_Call

func (*MockHTTPClient_Get_Call) RunAndReturn

func (_c *MockHTTPClient_Get_Call) RunAndReturn(run func(requestURL string, cfg ...client.Config) (*client.Response, error)) *MockHTTPClient_Get_Call

type MockHTTPClient_Post_Call

type MockHTTPClient_Post_Call struct {
	*mock.Call
}

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

func (*MockHTTPClient_Post_Call) Return

func (*MockHTTPClient_Post_Call) Run

func (_c *MockHTTPClient_Post_Call) Run(run func(requestURL string, cfg ...client.Config)) *MockHTTPClient_Post_Call

func (*MockHTTPClient_Post_Call) RunAndReturn

func (_c *MockHTTPClient_Post_Call) RunAndReturn(run func(requestURL string, cfg ...client.Config) (*client.Response, error)) *MockHTTPClient_Post_Call

Jump to

Keyboard shortcuts

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