mockquery

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	mock.Mock
}

Param is an autogenerated mock type for the Param type

func NewParam

func NewParam(t interface {
	mock.TestingT
	Cleanup(func())
}) *Param

NewParam creates a new instance of Param. 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 (*Param) EXPECT

func (_m *Param) EXPECT() *Param_Expecter

func (*Param) ParamType

func (_m *Param) ParamType() string

ParamType provides a mock function with given fields:

type Param_Expecter

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

func (*Param_Expecter) ParamType

func (_e *Param_Expecter) ParamType() *Param_ParamType_Call

ParamType is a helper method to define mock.On call

type Param_ParamType_Call

type Param_ParamType_Call struct {
	*mock.Call
}

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

func (*Param_ParamType_Call) Return

func (*Param_ParamType_Call) Run

func (_c *Param_ParamType_Call) Run(run func()) *Param_ParamType_Call

func (*Param_ParamType_Call) RunAndReturn

func (_c *Param_ParamType_Call) RunAndReturn(run func() string) *Param_ParamType_Call

Jump to

Keyboard shortcuts

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