mocks

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

type Cleaner struct {
	mock.Mock
}

Cleaner is an autogenerated mock type for the Cleaner type

func NewCleaner

func NewCleaner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cleaner

NewCleaner creates a new instance of Cleaner. 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 (*Cleaner) Cleanup

func (_mock *Cleaner) Cleanup()

Cleanup provides a mock function for the type Cleaner

func (*Cleaner) EXPECT

func (_m *Cleaner) EXPECT() *Cleaner_Expecter

type Cleaner_Cleanup_Call

type Cleaner_Cleanup_Call struct {
	*mock.Call
}

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

func (*Cleaner_Cleanup_Call) Return

func (*Cleaner_Cleanup_Call) Run

func (_c *Cleaner_Cleanup_Call) Run(run func()) *Cleaner_Cleanup_Call

func (*Cleaner_Cleanup_Call) RunAndReturn

func (_c *Cleaner_Cleanup_Call) RunAndReturn(run func()) *Cleaner_Cleanup_Call

type Cleaner_Expecter

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

func (*Cleaner_Expecter) Cleanup

func (_e *Cleaner_Expecter) Cleanup() *Cleaner_Cleanup_Call

Cleanup is a helper method to define mock.On call

type Validate

type Validate struct {
	mock.Mock
}

Validate is an autogenerated mock type for the Validate type

func NewValidate

func NewValidate(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validate

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

func (_m *Validate) EXPECT() *Validate_Expecter

func (*Validate) Validate

func (_mock *Validate) Validate() models.ValidationErrors

Validate provides a mock function for the type Validate

type Validate_Expecter

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

func (*Validate_Expecter) Validate

func (_e *Validate_Expecter) Validate() *Validate_Validate_Call

Validate is a helper method to define mock.On call

type Validate_Validate_Call

type Validate_Validate_Call struct {
	*mock.Call
}

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

func (*Validate_Validate_Call) Return

func (*Validate_Validate_Call) Run

func (_c *Validate_Validate_Call) Run(run func()) *Validate_Validate_Call

func (*Validate_Validate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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