Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Modifier ¶
Modifier is an autogenerated mock type for the Modifier type
func NewModifier ¶
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]
type Modifier_Enabled_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 ¶
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]
Click to show internal directories.
Click to hide internal directories.