mocks

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrorOption

type APIErrorOption struct {
	mock.Mock
}

APIErrorOption is an autogenerated mock type for the APIErrorOption type

func NewAPIErrorOption

func NewAPIErrorOption(t mockConstructorTestingTNewAPIErrorOption) *APIErrorOption

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

func (*APIErrorOption) EXPECT

func (*APIErrorOption) Execute

func (_m *APIErrorOption) Execute(apiError *errors.APIError)

Execute provides a mock function with given fields: apiError

type APIErrorOption_Execute_Call

type APIErrorOption_Execute_Call struct {
	*mock.Call
}

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

func (*APIErrorOption_Execute_Call) Return

func (*APIErrorOption_Execute_Call) Run

type APIErrorOption_Expecter

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

func (*APIErrorOption_Expecter) Execute

func (_e *APIErrorOption_Expecter) Execute(apiError interface{}) *APIErrorOption_Execute_Call

Execute is a helper method to define mock.On call

  • apiError *errors.APIError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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