mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseRepository

type DatabaseRepository struct {
	mock.Mock
}

DatabaseRepository is an autogenerated mock type for the DatabaseRepository type

func NewDatabaseRepository added in v0.5.0

func NewDatabaseRepository(t testing.TB) *DatabaseRepository

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

func (*DatabaseRepository) CreateContent

func (_m *DatabaseRepository) CreateContent(e *entities.Content) (*entities.Content, error)

CreateContent provides a mock function with given fields: e

func (*DatabaseRepository) CreateEvent

func (_m *DatabaseRepository) CreateEvent(e *entities.Event) (*entities.Event, error)

CreateEvent provides a mock function with given fields: e

func (*DatabaseRepository) DeleteContent

func (_m *DatabaseRepository) DeleteContent(name string) error

DeleteContent provides a mock function with given fields: name

func (*DatabaseRepository) DeleteEvent

func (_m *DatabaseRepository) DeleteEvent(id entities.ID) error

DeleteEvent provides a mock function with given fields: id

func (*DatabaseRepository) GetContent

func (_m *DatabaseRepository) GetContent(name string) (*entities.Content, error)

GetContent provides a mock function with given fields: name

func (*DatabaseRepository) GetEvent

func (_m *DatabaseRepository) GetEvent(id entities.ID) (*entities.Event, error)

GetEvent provides a mock function with given fields: id

func (*DatabaseRepository) ListContent

func (_m *DatabaseRepository) ListContent() ([]*entities.Content, error)

ListContent provides a mock function with given fields:

func (*DatabaseRepository) ListEvents

func (_m *DatabaseRepository) ListEvents(includePastEvents bool) ([]*entities.Event, error)

ListEvents provides a mock function with given fields: includePastEvents

func (*DatabaseRepository) UpdateContent

func (_m *DatabaseRepository) UpdateContent(e *entities.Content) (*entities.Content, error)

UpdateContent provides a mock function with given fields: e

func (*DatabaseRepository) UpdateEvent

func (_m *DatabaseRepository) UpdateEvent(e *entities.Event) (*entities.Event, error)

UpdateEvent provides a mock function with given fields: e

type Usecase

type Usecase struct {
	mock.Mock
}

Usecase is an autogenerated mock type for the Usecase type

func NewUsecase added in v0.5.0

func NewUsecase(t testing.TB) *Usecase

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

func (*Usecase) CreateContent

func (_m *Usecase) CreateContent(e *entities.Content) (*entities.Content, error)

CreateContent provides a mock function with given fields: e

func (*Usecase) CreateEvent

func (_m *Usecase) CreateEvent(e *entities.Event) (*entities.Event, error)

CreateEvent provides a mock function with given fields: e

func (*Usecase) DeleteContent

func (_m *Usecase) DeleteContent(name string) error

DeleteContent provides a mock function with given fields: name

func (*Usecase) DeleteEvent

func (_m *Usecase) DeleteEvent(id entities.ID) error

DeleteEvent provides a mock function with given fields: id

func (*Usecase) GetContent

func (_m *Usecase) GetContent(name string) (*entities.Content, error)

GetContent provides a mock function with given fields: name

func (*Usecase) GetEvent

func (_m *Usecase) GetEvent(id entities.ID) (*entities.Event, error)

GetEvent provides a mock function with given fields: id

func (*Usecase) ListContent

func (_m *Usecase) ListContent() ([]*entities.Content, error)

ListContent provides a mock function with given fields:

func (*Usecase) ListEvents

func (_m *Usecase) ListEvents(includePastEvents bool) ([]*entities.Event, error)

ListEvents provides a mock function with given fields: includePastEvents

func (*Usecase) UpdateContent

func (_m *Usecase) UpdateContent(e *entities.Content) (*entities.Content, error)

UpdateContent provides a mock function with given fields: e

func (*Usecase) UpdateEvent

func (_m *Usecase) UpdateEvent(e *entities.Event) (*entities.Event, error)

UpdateEvent provides a mock function with given fields: e

Jump to

Keyboard shortcuts

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