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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpectOption

type ExpectOption struct {
	mock.Mock
}

ExpectOption is an autogenerated mock type for the ExpectOption type

func NewExpectOption

func NewExpectOption(t mockConstructorTestingTNewExpectOption) *ExpectOption

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

func (*ExpectOption) EXPECT

func (_m *ExpectOption) EXPECT() *ExpectOption_Expecter

func (*ExpectOption) Execute

func (_m *ExpectOption) Execute(t *testing.T, response *http.Response)

Execute provides a mock function with given fields: t, response

type ExpectOption_Execute_Call

type ExpectOption_Execute_Call struct {
	*mock.Call
}

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

func (*ExpectOption_Execute_Call) Return

func (*ExpectOption_Execute_Call) Run

func (_c *ExpectOption_Execute_Call) Run(run func(t *testing.T, response *http.Response)) *ExpectOption_Execute_Call

type ExpectOption_Expecter

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

func (*ExpectOption_Expecter) Execute

func (_e *ExpectOption_Expecter) Execute(t interface{}, response interface{}) *ExpectOption_Execute_Call

Execute is a helper method to define mock.On call

  • t *testing.T
  • response *http.Response

Jump to

Keyboard shortcuts

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