mocks

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 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 any] struct {
	mock.Mock
}

Modifier is an autogenerated mock type for the Modifier type

func NewModifier

func NewModifier[T any](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 (_mock *Modifier[T]) Enabled() bool

Enabled provides a mock function for the type Modifier

func (*Modifier[T]) Modify

func (_mock *Modifier[T]) Modify(v *T) error

Modify provides a mock function for the type Modifier

type Modifier_Enabled_Call

type Modifier_Enabled_Call[T any] 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(b 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 any] 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(v interface{}) *Modifier_Modify_Call[T]

Modify is a helper method to define mock.On call

  • v *T

type Modifier_Modify_Call

type Modifier_Modify_Call[T any] 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(err error) *Modifier_Modify_Call[T]

func (*Modifier_Modify_Call[T]) Run

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

func (*Modifier_Modify_Call[T]) RunAndReturn

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

Jump to

Keyboard shortcuts

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