mocks

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modifier

type Modifier[T interface{}] struct {
	mock.Mock
}

Modifier is an autogenerated mock type for the Modifier type

func NewModifier

func NewModifier[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *Modifier[T]

NewModifier creates a new instance of Modifier. 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 (*Modifier[T]) EXPECT

func (_m *Modifier[T]) EXPECT() *Modifier_Expecter[T]

func (*Modifier[T]) Enabled

func (_m *Modifier[T]) Enabled() bool

Enabled provides a mock function with given fields:

func (*Modifier[T]) Modify

func (_m *Modifier[T]) Modify(_a0 *T) error

Modify provides a mock function with given fields: _a0

type Modifier_Enabled_Call

type Modifier_Enabled_Call[T interface{}] struct {
	*mock.Call
}

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

func (*Modifier_Enabled_Call[T]) Return

func (_c *Modifier_Enabled_Call[T]) Return(_a0 bool) *Modifier_Enabled_Call[T]

func (*Modifier_Enabled_Call[T]) Run

func (_c *Modifier_Enabled_Call[T]) Run(run func()) *Modifier_Enabled_Call[T]

func (*Modifier_Enabled_Call[T]) RunAndReturn

func (_c *Modifier_Enabled_Call[T]) RunAndReturn(run func() bool) *Modifier_Enabled_Call[T]

type Modifier_Expecter

type Modifier_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*Modifier_Expecter[T]) Enabled

func (_e *Modifier_Expecter[T]) Enabled() *Modifier_Enabled_Call[T]

Enabled is a helper method to define mock.On call

func (*Modifier_Expecter[T]) Modify

func (_e *Modifier_Expecter[T]) Modify(_a0 interface{}) *Modifier_Modify_Call[T]

Modify is a helper method to define mock.On call

  • _a0 *T

type Modifier_Modify_Call

type Modifier_Modify_Call[T interface{}] struct {
	*mock.Call
}

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

func (*Modifier_Modify_Call[T]) Return

func (_c *Modifier_Modify_Call[T]) Return(_a0 error) *Modifier_Modify_Call[T]

func (*Modifier_Modify_Call[T]) Run

func (_c *Modifier_Modify_Call[T]) Run(run func(_a0 *T)) *Modifier_Modify_Call[T]

func (*Modifier_Modify_Call[T]) RunAndReturn

func (_c *Modifier_Modify_Call[T]) RunAndReturn(run func(*T) error) *Modifier_Modify_Call[T]

Jump to

Keyboard shortcuts

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