mocks

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
	mock.Mock
}

HTTPRequest is an autogenerated mock type for the HTTPRequest type

func NewHTTPRequest added in v1.11.21

func NewHTTPRequest(t mockConstructorTestingTNewHTTPRequest) *HTTPRequest

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

func (*HTTPRequest) Do

func (_m *HTTPRequest) Do(_a0 context.Context, method string, url string, reqBody []byte, headers map[string]string) ([]byte, int, error)

Do provides a mock function with given fields: _a0, method, url, reqBody, headers

func (*HTTPRequest) DoRequest added in v1.11.6

func (_m *HTTPRequest) DoRequest(ctx context.Context, method string, url string, requestBody []byte, headers map[string]string) (*candiutils.HTTPRequestResult, error)

DoRequest provides a mock function with given fields: ctx, method, url, requestBody, headers

type Locker added in v1.8.8

type Locker struct {
	mock.Mock
}

Locker is an autogenerated mock type for the Locker type

func NewLocker added in v1.11.21

func NewLocker(t mockConstructorTestingTNewLocker) *Locker

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

func (*Locker) IsLocked added in v1.8.8

func (_m *Locker) IsLocked(key string) bool

IsLocked provides a mock function with given fields: key

func (*Locker) Reset added in v1.9.3

func (_m *Locker) Reset(key string)

Reset provides a mock function with given fields: key

func (*Locker) Unlock added in v1.9.3

func (_m *Locker) Unlock(key string)

Unlock provides a mock function with given fields: key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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