mocks

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 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 EntityFaker

type EntityFaker[T common.EntityConstraint] struct {
	mock.Mock
}

EntityFaker is an autogenerated mock type for the EntityFaker type

func NewEntityFaker

func NewEntityFaker[T common.EntityConstraint](t mockConstructorTestingTNewEntityFaker) *EntityFaker[T]

NewEntityFaker creates a new instance of EntityFaker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EntityFaker[T]) Any

func (_m *EntityFaker[T]) Any() T

Any provides a mock function with given fields:

func (*EntityFaker[T]) Create

func (_m *EntityFaker[T]) Create() T

Create provides a mock function with given fields:

func (*EntityFaker[T]) EXPECT

func (_m *EntityFaker[T]) EXPECT() *EntityFaker_Expecter[T]

type EntityFaker_Any_Call

type EntityFaker_Any_Call[T common.EntityConstraint] struct {
	*mock.Call
}

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

func (*EntityFaker_Any_Call[T]) Return

func (_c *EntityFaker_Any_Call[T]) Return(_a0 T) *EntityFaker_Any_Call[T]

func (*EntityFaker_Any_Call[T]) Run

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

type EntityFaker_Create_Call

type EntityFaker_Create_Call[T common.EntityConstraint] struct {
	*mock.Call
}

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

func (*EntityFaker_Create_Call[T]) Return

func (_c *EntityFaker_Create_Call[T]) Return(_a0 T) *EntityFaker_Create_Call[T]

func (*EntityFaker_Create_Call[T]) Run

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

type EntityFaker_Expecter

type EntityFaker_Expecter[T common.EntityConstraint] struct {
	// contains filtered or unexported fields
}

func (*EntityFaker_Expecter[T]) Any

func (_e *EntityFaker_Expecter[T]) Any() *EntityFaker_Any_Call[T]

Any is a helper method to define mock.On call

func (*EntityFaker_Expecter[T]) Create

func (_e *EntityFaker_Expecter[T]) Create() *EntityFaker_Create_Call[T]

Create is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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