mocks

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	mock.Mock
}

HTTP is an autogenerated mock type for the HTTP type

func NewHTTP

func NewHTTP(t mockConstructorTestingTNewHTTP) *HTTP

NewHTTP creates a new instance of HTTP. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HTTP) EXPECT

func (_m *HTTP) EXPECT() *HTTP_Expecter

func (*HTTP) Get

func (_m *HTTP) Get(ctx context.Context, path string, query url.Values, headers http.Header) (*http.Response, error)

Get provides a mock function with given fields: ctx, path, query, headers

type HTTP_Expecter

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

func (*HTTP_Expecter) Get

func (_e *HTTP_Expecter) Get(ctx interface{}, path interface{}, query interface{}, headers interface{}) *HTTP_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • path string
  • query url.Values
  • headers http.Header

type HTTP_Get_Call

type HTTP_Get_Call struct {
	*mock.Call
}

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

func (*HTTP_Get_Call) Return

func (_c *HTTP_Get_Call) Return(_a0 *http.Response, _a1 error) *HTTP_Get_Call

func (*HTTP_Get_Call) Run

func (_c *HTTP_Get_Call) Run(run func(ctx context.Context, path string, query url.Values, headers http.Header)) *HTTP_Get_Call

func (*HTTP_Get_Call) RunAndReturn

func (_c *HTTP_Get_Call) RunAndReturn(run func(context.Context, string, url.Values, http.Header) (*http.Response, error)) *HTTP_Get_Call

Jump to

Keyboard shortcuts

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