mocks

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCalendarService

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

MockCalendarService is a mock of CalendarService interface.

func NewMockCalendarService

func NewMockCalendarService(ctrl *gomock.Controller) *MockCalendarService

NewMockCalendarService creates a new mock instance.

func (*MockCalendarService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCalendarService) Sync

Sync mocks base method.

type MockCalendarServiceMockRecorder

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

MockCalendarServiceMockRecorder is the mock recorder for MockCalendarService.

func (*MockCalendarServiceMockRecorder) Sync

Sync indicates an expected call of Sync.

type MockContactsRepository

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

MockContactsRepository is a mock of ContactsRepository interface.

func NewMockContactsRepository

func NewMockContactsRepository(ctrl *gomock.Controller) *MockContactsRepository

NewMockContactsRepository creates a new mock instance.

func (*MockContactsRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContactsRepository) GetByID

GetByID mocks base method.

type MockContactsRepositoryMockRecorder

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

MockContactsRepositoryMockRecorder is the mock recorder for MockContactsRepository.

func (*MockContactsRepositoryMockRecorder) GetByID

func (mr *MockContactsRepositoryMockRecorder) GetByID(ctx, id any) *gomock.Call

GetByID indicates an expected call of GetByID.

type MockInvoicesRepository

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

MockInvoicesRepository is a mock of InvoicesRepository interface.

func NewMockInvoicesRepository

func NewMockInvoicesRepository(ctrl *gomock.Controller) *MockInvoicesRepository

NewMockInvoicesRepository creates a new mock instance.

func (*MockInvoicesRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInvoicesRepository) GetByID

GetByID mocks base method.

func (*MockInvoicesRepository) GetByTemplateID

func (m *MockInvoicesRepository) GetByTemplateID(ctx context.Context, id uint64) ([]entities.Invoice, error)

GetByTemplateID mocks base method.

type MockInvoicesRepositoryMockRecorder

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

MockInvoicesRepositoryMockRecorder is the mock recorder for MockInvoicesRepository.

func (*MockInvoicesRepositoryMockRecorder) GetByID

func (mr *MockInvoicesRepositoryMockRecorder) GetByID(ctx, id any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockInvoicesRepositoryMockRecorder) GetByTemplateID

func (mr *MockInvoicesRepositoryMockRecorder) GetByTemplateID(ctx, id any) *gomock.Call

GetByTemplateID indicates an expected call of GetByTemplateID.

type MockInvoicesService

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

MockInvoicesService is a mock of InvoicesService interface.

func NewMockInvoicesService

func NewMockInvoicesService(ctrl *gomock.Controller) *MockInvoicesService

NewMockInvoicesService creates a new mock instance.

func (*MockInvoicesService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInvoicesService) GetScheduledInvoices

func (m *MockInvoicesService) GetScheduledInvoices(ctx context.Context, template entities.InvoiceTemplate) ([]entities.Invoice, error)

GetScheduledInvoices mocks base method.

type MockInvoicesServiceMockRecorder

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

MockInvoicesServiceMockRecorder is the mock recorder for MockInvoicesService.

func (*MockInvoicesServiceMockRecorder) GetScheduledInvoices

func (mr *MockInvoicesServiceMockRecorder) GetScheduledInvoices(ctx, template any) *gomock.Call

GetScheduledInvoices indicates an expected call of GetScheduledInvoices.

type MockLogger

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

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLogger) Warn

func (m *MockLogger) Warn(msg string, fields ...log.Field)

Warn mocks base method.

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Warn

func (mr *MockLoggerMockRecorder) Warn(msg any, fields ...any) *gomock.Call

Warn indicates an expected call of Warn.

type MockPeriodsRepository

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

MockPeriodsRepository is a mock of PeriodsRepository interface.

func NewMockPeriodsRepository

func NewMockPeriodsRepository(ctrl *gomock.Controller) *MockPeriodsRepository

NewMockPeriodsRepository creates a new mock instance.

func (*MockPeriodsRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPeriodsRepository) GetLast

GetLast mocks base method.

type MockPeriodsRepositoryMockRecorder

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

MockPeriodsRepositoryMockRecorder is the mock recorder for MockPeriodsRepository.

func (*MockPeriodsRepositoryMockRecorder) GetLast

GetLast indicates an expected call of GetLast.

type MockUnitOfWork

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

MockUnitOfWork is a mock of UnitOfWork interface.

func NewMockUnitOfWork

func NewMockUnitOfWork(ctrl *gomock.Controller) *MockUnitOfWork

NewMockUnitOfWork creates a new mock instance.

func (*MockUnitOfWork) Commit

func (m *MockUnitOfWork) Commit(ctx context.Context) error

Commit mocks base method.

func (*MockUnitOfWork) CreateInvoices

func (m *MockUnitOfWork) CreateInvoices(invoices []entities.Invoice, template entities.InvoiceTemplate)

CreateInvoices mocks base method.

func (*MockUnitOfWork) DeleteInvoice

func (m *MockUnitOfWork) DeleteInvoice(id uint64)

DeleteInvoice mocks base method.

func (*MockUnitOfWork) DeleteTemplate

func (m *MockUnitOfWork) DeleteTemplate(id uint64)

DeleteTemplate mocks base method.

func (*MockUnitOfWork) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUnitOfWork) UpdateInvoice

func (m *MockUnitOfWork) UpdateInvoice(invoice entities.Invoice)

UpdateInvoice mocks base method.

type MockUnitOfWorkMockRecorder

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

MockUnitOfWorkMockRecorder is the mock recorder for MockUnitOfWork.

func (*MockUnitOfWorkMockRecorder) Commit

func (mr *MockUnitOfWorkMockRecorder) Commit(ctx any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockUnitOfWorkMockRecorder) CreateInvoices

func (mr *MockUnitOfWorkMockRecorder) CreateInvoices(invoices, template any) *gomock.Call

CreateInvoices indicates an expected call of CreateInvoices.

func (*MockUnitOfWorkMockRecorder) DeleteInvoice

func (mr *MockUnitOfWorkMockRecorder) DeleteInvoice(id any) *gomock.Call

DeleteInvoice indicates an expected call of DeleteInvoice.

func (*MockUnitOfWorkMockRecorder) DeleteTemplate

func (mr *MockUnitOfWorkMockRecorder) DeleteTemplate(id any) *gomock.Call

DeleteTemplate indicates an expected call of DeleteTemplate.

func (*MockUnitOfWorkMockRecorder) UpdateInvoice

func (mr *MockUnitOfWorkMockRecorder) UpdateInvoice(invoice any) *gomock.Call

UpdateInvoice indicates an expected call of UpdateInvoice.

Jump to

Keyboard shortcuts

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