Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCalendarService
- type MockCalendarServiceMockRecorder
- type MockContactsRepository
- type MockContactsRepositoryMockRecorder
- type MockInvoicesRepository
- type MockInvoicesRepositoryMockRecorder
- type MockInvoicesService
- type MockInvoicesServiceMockRecorder
- type MockLogger
- type MockLoggerMockRecorder
- type MockPeriodsRepository
- type MockPeriodsRepositoryMockRecorder
- type MockUnitOfWork
- func (m *MockUnitOfWork) Commit(ctx context.Context) error
- func (m *MockUnitOfWork) CreateInvoices(invoices []entities.Invoice, template entities.InvoiceTemplate)
- func (m *MockUnitOfWork) DeleteInvoice(id uint64)
- func (m *MockUnitOfWork) DeleteTemplate(id uint64)
- func (m *MockUnitOfWork) EXPECT() *MockUnitOfWorkMockRecorder
- func (m *MockUnitOfWork) UpdateInvoice(invoice entities.Invoice)
- type MockUnitOfWorkMockRecorder
- func (mr *MockUnitOfWorkMockRecorder) Commit(ctx any) *gomock.Call
- func (mr *MockUnitOfWorkMockRecorder) CreateInvoices(invoices, template any) *gomock.Call
- func (mr *MockUnitOfWorkMockRecorder) DeleteInvoice(id any) *gomock.Call
- func (mr *MockUnitOfWorkMockRecorder) DeleteTemplate(id any) *gomock.Call
- func (mr *MockUnitOfWorkMockRecorder) UpdateInvoice(invoice any) *gomock.Call
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 ¶
func (m *MockCalendarService) EXPECT() *MockCalendarServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCalendarServiceMockRecorder ¶
type MockCalendarServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCalendarServiceMockRecorder is the mock recorder for MockCalendarService.
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 ¶
func (m *MockContactsRepository) EXPECT() *MockContactsRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockContactsRepositoryMockRecorder ¶
type MockContactsRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockContactsRepositoryMockRecorder is the mock recorder for MockContactsRepository.
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 ¶
func (m *MockInvoicesRepository) EXPECT() *MockInvoicesRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockInvoicesService) EXPECT() *MockInvoicesServiceMockRecorder
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.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
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 ¶
func (m *MockPeriodsRepository) EXPECT() *MockPeriodsRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPeriodsRepositoryMockRecorder ¶
type MockPeriodsRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPeriodsRepositoryMockRecorder is the mock recorder for MockPeriodsRepository.
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 ¶
func (m *MockUnitOfWork) EXPECT() *MockUnitOfWorkMockRecorder
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.