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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityConverter

type EntityConverter[T interface{}] struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func NewEntityConverter

func NewEntityConverter[T interface{}](t mockConstructorTestingTNewEntityConverter) *EntityConverter[T]

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

func (*EntityConverter[T]) EXPECT

func (_m *EntityConverter[T]) EXPECT() *EntityConverter_Expecter[T]

func (*EntityConverter[T]) Execute

func (_m *EntityConverter[T]) Execute(entity T) interface{}

Execute provides a mock function with given fields: entity

type EntityConverter_Execute_Call

type EntityConverter_Execute_Call[T interface{}] struct {
	*mock.Call
}

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

func (*EntityConverter_Execute_Call[T]) Return

func (_c *EntityConverter_Execute_Call[T]) Return(_a0 interface{}) *EntityConverter_Execute_Call[T]

func (*EntityConverter_Execute_Call[T]) Run

func (_c *EntityConverter_Execute_Call[T]) Run(run func(entity T)) *EntityConverter_Execute_Call[T]

type EntityConverter_Expecter

type EntityConverter_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*EntityConverter_Expecter[T]) Execute

func (_e *EntityConverter_Expecter[T]) Execute(entity interface{}) *EntityConverter_Execute_Call[T]

Execute is a helper method to define mock.On call

  • entity T

type Event

type Event struct {
	mock.Mock
}

Event is an autogenerated mock type for the Event type

func NewEvent

func NewEvent(t mockConstructorTestingTNewEvent) *Event

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

func (*Event) EXPECT

func (_m *Event) EXPECT() *Event_Expecter

func (*Event) Name

func (_m *Event) Name() event.Name

Name provides a mock function with given fields:

type Event_Expecter

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

func (*Event_Expecter) Name

func (_e *Event_Expecter) Name() *Event_Name_Call

Name is a helper method to define mock.On call

type Event_Name_Call

type Event_Name_Call struct {
	*mock.Call
}

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

func (*Event_Name_Call) Return

func (_c *Event_Name_Call) Return(_a0 event.Name) *Event_Name_Call

func (*Event_Name_Call) Run

func (_c *Event_Name_Call) Run(run func()) *Event_Name_Call

type Listener

type Listener struct {
	mock.Mock
}

Listener is an autogenerated mock type for the Listener type

func NewListener

func NewListener(t mockConstructorTestingTNewListener) *Listener

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

func (*Listener) EXPECT

func (_m *Listener) EXPECT() *Listener_Expecter

func (*Listener) Listen

func (_m *Listener) Listen(ctx context.Context, _a1 event.Event)

Listen provides a mock function with given fields: ctx, _a1

type Listener_Expecter

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

func (*Listener_Expecter) Listen

func (_e *Listener_Expecter) Listen(ctx interface{}, _a1 interface{}) *Listener_Listen_Call

Listen is a helper method to define mock.On call

  • ctx context.Context
  • _a1 event.Event

type Listener_Listen_Call

type Listener_Listen_Call struct {
	*mock.Call
}

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

func (*Listener_Listen_Call) Return

func (*Listener_Listen_Call) Run

func (_c *Listener_Listen_Call) Run(run func(ctx context.Context, _a1 event.Event)) *Listener_Listen_Call

Jump to

Keyboard shortcuts

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