httputils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCdiHTTPClient

type MockCdiHTTPClient struct {
	mock.Mock
}

MockCdiHTTPClient is an autogenerated mock type for the CdiHTTPClient type

func NewMockCdiHTTPClient

func NewMockCdiHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCdiHTTPClient

NewMockCdiHTTPClient creates a new instance of MockCdiHTTPClient. 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 (*MockCdiHTTPClient) Delete

func (_m *MockCdiHTTPClient) Delete(endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string) (int, error)

Delete provides a mock function with given fields: endpoint, queryParams, responseAddress, headers

func (*MockCdiHTTPClient) EXPECT

func (*MockCdiHTTPClient) Get

func (_m *MockCdiHTTPClient) Get(endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string) (int, error)

Get provides a mock function with given fields: endpoint, queryParams, responseAddress, headers

func (*MockCdiHTTPClient) Post

func (_m *MockCdiHTTPClient) Post(payload []byte, endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string) (int, error)

Post provides a mock function with given fields: payload, endpoint, queryParams, responseAddress, headers

func (*MockCdiHTTPClient) Put

func (_m *MockCdiHTTPClient) Put(payload []byte, endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string) (int, error)

Put provides a mock function with given fields: payload, endpoint, queryParams, responseAddress, headers

type MockCdiHTTPClient_Delete_Call

type MockCdiHTTPClient_Delete_Call struct {
	*mock.Call
}

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

func (*MockCdiHTTPClient_Delete_Call) Return

func (*MockCdiHTTPClient_Delete_Call) Run

func (_c *MockCdiHTTPClient_Delete_Call) Run(run func(endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string)) *MockCdiHTTPClient_Delete_Call

func (*MockCdiHTTPClient_Delete_Call) RunAndReturn

func (_c *MockCdiHTTPClient_Delete_Call) RunAndReturn(run func(string, map[string]string, interface{}, map[string]string) (int, error)) *MockCdiHTTPClient_Delete_Call

type MockCdiHTTPClient_Expecter

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

func (*MockCdiHTTPClient_Expecter) Delete

func (_e *MockCdiHTTPClient_Expecter) Delete(endpoint interface{}, queryParams interface{}, responseAddress interface{}, headers interface{}) *MockCdiHTTPClient_Delete_Call

Delete is a helper method to define mock.On call

  • endpoint string
  • queryParams map[string]string
  • responseAddress interface{}
  • headers map[string]string

func (*MockCdiHTTPClient_Expecter) Get

func (_e *MockCdiHTTPClient_Expecter) Get(endpoint interface{}, queryParams interface{}, responseAddress interface{}, headers interface{}) *MockCdiHTTPClient_Get_Call

Get is a helper method to define mock.On call

  • endpoint string
  • queryParams map[string]string
  • responseAddress interface{}
  • headers map[string]string

func (*MockCdiHTTPClient_Expecter) Post

func (_e *MockCdiHTTPClient_Expecter) Post(payload interface{}, endpoint interface{}, queryParams interface{}, responseAddress interface{}, headers interface{}) *MockCdiHTTPClient_Post_Call

Post is a helper method to define mock.On call

  • payload []byte
  • endpoint string
  • queryParams map[string]string
  • responseAddress interface{}
  • headers map[string]string

func (*MockCdiHTTPClient_Expecter) Put

func (_e *MockCdiHTTPClient_Expecter) Put(payload interface{}, endpoint interface{}, queryParams interface{}, responseAddress interface{}, headers interface{}) *MockCdiHTTPClient_Put_Call

Put is a helper method to define mock.On call

  • payload []byte
  • endpoint string
  • queryParams map[string]string
  • responseAddress interface{}
  • headers map[string]string

type MockCdiHTTPClient_Get_Call

type MockCdiHTTPClient_Get_Call struct {
	*mock.Call
}

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

func (*MockCdiHTTPClient_Get_Call) Return

func (*MockCdiHTTPClient_Get_Call) Run

func (_c *MockCdiHTTPClient_Get_Call) Run(run func(endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string)) *MockCdiHTTPClient_Get_Call

func (*MockCdiHTTPClient_Get_Call) RunAndReturn

func (_c *MockCdiHTTPClient_Get_Call) RunAndReturn(run func(string, map[string]string, interface{}, map[string]string) (int, error)) *MockCdiHTTPClient_Get_Call

type MockCdiHTTPClient_Post_Call

type MockCdiHTTPClient_Post_Call struct {
	*mock.Call
}

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

func (*MockCdiHTTPClient_Post_Call) Return

func (*MockCdiHTTPClient_Post_Call) Run

func (_c *MockCdiHTTPClient_Post_Call) Run(run func(payload []byte, endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string)) *MockCdiHTTPClient_Post_Call

func (*MockCdiHTTPClient_Post_Call) RunAndReturn

func (_c *MockCdiHTTPClient_Post_Call) RunAndReturn(run func([]byte, string, map[string]string, interface{}, map[string]string) (int, error)) *MockCdiHTTPClient_Post_Call

type MockCdiHTTPClient_Put_Call

type MockCdiHTTPClient_Put_Call struct {
	*mock.Call
}

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

func (*MockCdiHTTPClient_Put_Call) Return

func (*MockCdiHTTPClient_Put_Call) Run

func (_c *MockCdiHTTPClient_Put_Call) Run(run func(payload []byte, endpoint string, queryParams map[string]string, responseAddress interface{}, headers map[string]string)) *MockCdiHTTPClient_Put_Call

func (*MockCdiHTTPClient_Put_Call) RunAndReturn

func (_c *MockCdiHTTPClient_Put_Call) RunAndReturn(run func([]byte, string, map[string]string, interface{}, map[string]string) (int, error)) *MockCdiHTTPClient_Put_Call

Jump to

Keyboard shortcuts

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