Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) CreateInstance(arg0 context.Context, arg1 string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) ExpectFilterEvents(events ...*repository.Event) *MockRepository
- func (m *MockRepository) ExpectFilterEventsError(err error) *MockRepository
- func (m *MockRepository) ExpectFilterNoEventsNoError() *MockRepository
- func (m *MockRepository) ExpectPush(expectedEvents []*repository.Event, ...) *MockRepository
- func (m *MockRepository) ExpectPushFailed(err error, expectedEvents []*repository.Event, ...) *MockRepository
- func (m *MockRepository) Filter(arg0 context.Context, arg1 *repository.SearchQuery) ([]*repository.Event, error)
- func (m *MockRepository) Health(arg0 context.Context) error
- func (m *MockRepository) LatestSequence(arg0 context.Context, arg1 *repository.SearchQuery) (uint64, error)
- func (m *MockRepository) Push(arg0 context.Context, arg1 []*repository.Event, ...) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) CreateInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Filter(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Health(arg0 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) LatestSequence(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Push(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
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 NewRepo ¶
func NewRepo(t *testing.T) *MockRepository
func (*MockRepository) CreateInstance ¶
func (m *MockRepository) CreateInstance(arg0 context.Context, arg1 string) error
CreateInstance 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) ExpectFilterEvents ¶
func (m *MockRepository) ExpectFilterEvents(events ...*repository.Event) *MockRepository
func (*MockRepository) ExpectFilterEventsError ¶
func (m *MockRepository) ExpectFilterEventsError(err error) *MockRepository
func (*MockRepository) ExpectFilterNoEventsNoError ¶
func (m *MockRepository) ExpectFilterNoEventsNoError() *MockRepository
func (*MockRepository) ExpectPush ¶
func (m *MockRepository) ExpectPush(expectedEvents []*repository.Event, expectedUniqueConstraints ...*repository.UniqueConstraint) *MockRepository
func (*MockRepository) ExpectPushFailed ¶
func (m *MockRepository) ExpectPushFailed(err error, expectedEvents []*repository.Event, expectedUniqueConstraints ...*repository.UniqueConstraint) *MockRepository
func (*MockRepository) Filter ¶
func (m *MockRepository) Filter(arg0 context.Context, arg1 *repository.SearchQuery) ([]*repository.Event, error)
Filter mocks base method.
func (*MockRepository) Health ¶
func (m *MockRepository) Health(arg0 context.Context) error
Health mocks base method.
func (*MockRepository) LatestSequence ¶
func (m *MockRepository) LatestSequence(arg0 context.Context, arg1 *repository.SearchQuery) (uint64, error)
LatestSequence mocks base method.
func (*MockRepository) Push ¶
func (m *MockRepository) Push(arg0 context.Context, arg1 []*repository.Event, arg2 ...*repository.UniqueConstraint) error
Push mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) CreateInstance ¶
func (mr *MockRepositoryMockRecorder) CreateInstance(arg0, arg1 interface{}) *gomock.Call
CreateInstance indicates an expected call of CreateInstance.
func (*MockRepositoryMockRecorder) Filter ¶
func (mr *MockRepositoryMockRecorder) Filter(arg0, arg1 interface{}) *gomock.Call
Filter indicates an expected call of Filter.
func (*MockRepositoryMockRecorder) Health ¶
func (mr *MockRepositoryMockRecorder) Health(arg0 interface{}) *gomock.Call
Health indicates an expected call of Health.
func (*MockRepositoryMockRecorder) LatestSequence ¶
func (mr *MockRepositoryMockRecorder) LatestSequence(arg0, arg1 interface{}) *gomock.Call
LatestSequence indicates an expected call of LatestSequence.
func (*MockRepositoryMockRecorder) Push ¶
func (mr *MockRepositoryMockRecorder) Push(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Push indicates an expected call of Push.