mocks

package
v0.0.0-...-9080efb Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 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 AggregateRoot

type AggregateRoot struct {
	mock.Mock
}

AggregateRoot is an autogenerated mock type for the AggregateRoot type

func NewAggregateRoot

func NewAggregateRoot(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggregateRoot

NewAggregateRoot creates a new instance of AggregateRoot. 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 (*AggregateRoot) ClearEvents

func (_mock *AggregateRoot) ClearEvents()

ClearEvents provides a mock function for the type AggregateRoot

func (*AggregateRoot) EXPECT

func (_m *AggregateRoot) EXPECT() *AggregateRoot_Expecter

func (*AggregateRoot) GetEvents

func (_mock *AggregateRoot) GetEvents() []aggregate.DomainEvent

GetEvents provides a mock function for the type AggregateRoot

func (*AggregateRoot) Record

func (_mock *AggregateRoot) Record(domainEvent aggregate.DomainEvent)

Record provides a mock function for the type AggregateRoot

type AggregateRoot_ClearEvents_Call

type AggregateRoot_ClearEvents_Call struct {
	*mock.Call
}

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

func (*AggregateRoot_ClearEvents_Call) Return

func (*AggregateRoot_ClearEvents_Call) Run

func (*AggregateRoot_ClearEvents_Call) RunAndReturn

func (_c *AggregateRoot_ClearEvents_Call) RunAndReturn(run func()) *AggregateRoot_ClearEvents_Call

type AggregateRoot_Expecter

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

func (*AggregateRoot_Expecter) ClearEvents

ClearEvents is a helper method to define mock.On call

func (*AggregateRoot_Expecter) GetEvents

GetEvents is a helper method to define mock.On call

func (*AggregateRoot_Expecter) Record

func (_e *AggregateRoot_Expecter) Record(domainEvent interface{}) *AggregateRoot_Record_Call

Record is a helper method to define mock.On call

  • domainEvent

type AggregateRoot_GetEvents_Call

type AggregateRoot_GetEvents_Call struct {
	*mock.Call
}

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

func (*AggregateRoot_GetEvents_Call) Return

func (*AggregateRoot_GetEvents_Call) Run

func (*AggregateRoot_GetEvents_Call) RunAndReturn

type AggregateRoot_Record_Call

type AggregateRoot_Record_Call struct {
	*mock.Call
}

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

func (*AggregateRoot_Record_Call) Return

func (*AggregateRoot_Record_Call) Run

func (*AggregateRoot_Record_Call) RunAndReturn

func (_c *AggregateRoot_Record_Call) RunAndReturn(run func(domainEvent aggregate.DomainEvent)) *AggregateRoot_Record_Call

type DomainEvent

type DomainEvent struct {
	mock.Mock
}

DomainEvent is an autogenerated mock type for the DomainEvent type

func NewDomainEvent

func NewDomainEvent(t interface {
	mock.TestingT
	Cleanup(func())
}) *DomainEvent

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

func (_m *DomainEvent) EXPECT() *DomainEvent_Expecter

func (*DomainEvent) GetAggregateID

func (_mock *DomainEvent) GetAggregateID() string

GetAggregateID provides a mock function for the type DomainEvent

type DomainEvent_Expecter

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

func (*DomainEvent_Expecter) GetAggregateID

GetAggregateID is a helper method to define mock.On call

type DomainEvent_GetAggregateID_Call

type DomainEvent_GetAggregateID_Call struct {
	*mock.Call
}

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

func (*DomainEvent_GetAggregateID_Call) Return

func (*DomainEvent_GetAggregateID_Call) Run

func (*DomainEvent_GetAggregateID_Call) RunAndReturn

type EventDispatcher

type EventDispatcher struct {
	mock.Mock
}

EventDispatcher is an autogenerated mock type for the EventDispatcher type

func NewEventDispatcher

func NewEventDispatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventDispatcher

NewEventDispatcher creates a new instance of EventDispatcher. 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 (*EventDispatcher) Dispatch

func (_mock *EventDispatcher) Dispatch(ctx context.Context, domainEvent []aggregate.DomainEvent)

Dispatch provides a mock function for the type EventDispatcher

func (*EventDispatcher) EXPECT

type EventDispatcher_Dispatch_Call

type EventDispatcher_Dispatch_Call struct {
	*mock.Call
}

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

func (*EventDispatcher_Dispatch_Call) Return

func (*EventDispatcher_Dispatch_Call) Run

func (*EventDispatcher_Dispatch_Call) RunAndReturn

func (_c *EventDispatcher_Dispatch_Call) RunAndReturn(run func(ctx context.Context, domainEvent []aggregate.DomainEvent)) *EventDispatcher_Dispatch_Call

type EventDispatcher_Expecter

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

func (*EventDispatcher_Expecter) Dispatch

func (_e *EventDispatcher_Expecter) Dispatch(ctx interface{}, domainEvent interface{}) *EventDispatcher_Dispatch_Call

Dispatch is a helper method to define mock.On call

  • ctx
  • domainEvent

Jump to

Keyboard shortcuts

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