domain_mock

package
v0.0.0-...-de52b65 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 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 MockEventRepository

type MockEventRepository struct {
	mock.Mock
}

MockEventRepository is a mock implementation of EventRepository

func (*MockEventRepository) FindAll

func (m *MockEventRepository) FindAll() ([]domain.Event, error)

FindAll mocks the method for finding all events

func (*MockEventRepository) Save

func (m *MockEventRepository) Save(event *domain.Event) error

Save mocks the method for saving an event

type MockEventUsecase

type MockEventUsecase struct {
	mock.Mock
}

MockEventUsecase is a mock implementation of domain.EventUsecase

func (*MockEventUsecase) Save

func (m *MockEventUsecase) Save(cloudEvent domain.CloudEvent) error

Jump to

Keyboard shortcuts

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