Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Count(ctx context.Context, filter *historylog.Filter) (int64, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) FetchList(ctx context.Context, filter *historylog.Filter, order *historylog.Order, ...) ([]*model.HistoryAction, error)
- type MockRepositoryMockRecorder
- type MockUsecase
- type MockUsecaseMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Count ¶
func (m *MockRepository) Count(ctx context.Context, filter *historylog.Filter) (int64, error)
Count mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) FetchList ¶
func (m *MockRepository) FetchList(ctx context.Context, filter *historylog.Filter, order *historylog.Order, pagination *repository.Pagination) ([]*model.HistoryAction, error)
FetchList mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx, filter interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) FetchList ¶
func (mr *MockRepositoryMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call
FetchList indicates an expected call of FetchList.
type MockUsecase ¶
type MockUsecase struct {
// contains filtered or unexported fields
}
MockUsecase is a mock of Usecase interface.
func NewMockUsecase ¶
func NewMockUsecase(ctrl *gomock.Controller) *MockUsecase
NewMockUsecase creates a new mock instance.
func (*MockUsecase) Count ¶
func (m *MockUsecase) Count(ctx context.Context, filter *historylog.Filter) (int64, error)
Count mocks base method.
func (*MockUsecase) EXPECT ¶
func (m *MockUsecase) EXPECT() *MockUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsecase) FetchList ¶
func (m *MockUsecase) FetchList(ctx context.Context, filter *historylog.Filter, order *historylog.Order, pagination *repository.Pagination) ([]*model.HistoryAction, error)
FetchList mocks base method.
type MockUsecaseMockRecorder ¶
type MockUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUsecaseMockRecorder is the mock recorder for MockUsecase.
func (*MockUsecaseMockRecorder) Count ¶
func (mr *MockUsecaseMockRecorder) Count(ctx, filter interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockUsecaseMockRecorder) FetchList ¶
func (mr *MockUsecaseMockRecorder) FetchList(ctx, filter, order, pagination interface{}) *gomock.Call
FetchList indicates an expected call of FetchList.