mocks

package
v1.4.31 Latest Latest
Warning

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

Go to latest
Published: Apr 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 ClientHTTPRequester

type ClientHTTPRequester struct {
	mock.Mock
}

ClientHTTPRequester is an autogenerated mock type for the HTTPRequester type

func NewClientHTTPRequester

func NewClientHTTPRequester(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientHTTPRequester

NewClientHTTPRequester creates a new instance of ClientHTTPRequester. 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 (*ClientHTTPRequester) Close

func (_m *ClientHTTPRequester) Close()

Close provides a mock function with given fields:

func (*ClientHTTPRequester) EXPECT

func (*ClientHTTPRequester) Request

func (_m *ClientHTTPRequester) Request(ctx context.Context, method string, path string, input interface{}, output interface{}) (int, error)

Request provides a mock function with given fields: ctx, method, path, input, output

type ClientHTTPRequester_Close_Call

type ClientHTTPRequester_Close_Call struct {
	*mock.Call
}

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

func (*ClientHTTPRequester_Close_Call) Return

func (*ClientHTTPRequester_Close_Call) Run

func (*ClientHTTPRequester_Close_Call) RunAndReturn

func (_c *ClientHTTPRequester_Close_Call) RunAndReturn(run func()) *ClientHTTPRequester_Close_Call

type ClientHTTPRequester_Expecter

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

func (*ClientHTTPRequester_Expecter) Close

Close is a helper method to define mock.On call

func (*ClientHTTPRequester_Expecter) Request

func (_e *ClientHTTPRequester_Expecter) Request(ctx interface{}, method interface{}, path interface{}, input interface{}, output interface{}) *ClientHTTPRequester_Request_Call

Request is a helper method to define mock.On call

  • ctx context.Context
  • method string
  • path string
  • input interface{}
  • output interface{}

type ClientHTTPRequester_Request_Call

type ClientHTTPRequester_Request_Call struct {
	*mock.Call
}

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

func (*ClientHTTPRequester_Request_Call) Return

func (*ClientHTTPRequester_Request_Call) Run

func (_c *ClientHTTPRequester_Request_Call) Run(run func(ctx context.Context, method string, path string, input interface{}, output interface{})) *ClientHTTPRequester_Request_Call

func (*ClientHTTPRequester_Request_Call) RunAndReturn

func (_c *ClientHTTPRequester_Request_Call) RunAndReturn(run func(context.Context, string, string, interface{}, interface{}) (int, error)) *ClientHTTPRequester_Request_Call

Jump to

Keyboard shortcuts

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