factory

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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 (*Factory) Definition

func (_m *Factory) Definition() map[string]interface{}

Definition provides a mock function with given fields:

func (*Factory) EXPECT

func (_m *Factory) EXPECT() *Factory_Expecter

type Factory_Definition_Call

type Factory_Definition_Call struct {
	*mock.Call
}

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

func (*Factory_Definition_Call) Return

func (_c *Factory_Definition_Call) Return(_a0 map[string]interface{}) *Factory_Definition_Call

func (*Factory_Definition_Call) Run

func (_c *Factory_Definition_Call) Run(run func()) *Factory_Definition_Call

func (*Factory_Definition_Call) RunAndReturn

func (_c *Factory_Definition_Call) RunAndReturn(run func() map[string]interface{}) *Factory_Definition_Call

type Factory_Expecter

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

func (*Factory_Expecter) Definition

func (_e *Factory_Expecter) Definition() *Factory_Definition_Call

Definition is a helper method to define mock.On call

type Model

type Model struct {
	mock.Mock
}

Model is an autogenerated mock type for the Model type

func NewModel

func NewModel(t interface {
	mock.TestingT
	Cleanup(func())
}) *Model

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

func (_m *Model) EXPECT() *Model_Expecter

func (*Model) Factory

func (_m *Model) Factory() factory.Factory

Factory provides a mock function with given fields:

type Model_Expecter

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

func (*Model_Expecter) Factory

func (_e *Model_Expecter) Factory() *Model_Factory_Call

Factory is a helper method to define mock.On call

type Model_Factory_Call

type Model_Factory_Call struct {
	*mock.Call
}

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

func (*Model_Factory_Call) Return

func (*Model_Factory_Call) Run

func (_c *Model_Factory_Call) Run(run func()) *Model_Factory_Call

func (*Model_Factory_Call) RunAndReturn

func (_c *Model_Factory_Call) RunAndReturn(run func() factory.Factory) *Model_Factory_Call

Jump to

Keyboard shortcuts

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