mock

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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 NewMock

func NewMock(t *testing.T) *MockRepository

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance

func (*MockRepository) EXPECT

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

func (*MockRepository) ExpectFilter

func (m *MockRepository) ExpectFilter(query *models.SearchQuery, eventAmount int) *MockRepository

func (*MockRepository) ExpectFilterFail

func (m *MockRepository) ExpectFilterFail(query *models.SearchQuery, err error) *MockRepository

func (*MockRepository) ExpectPush

func (m *MockRepository) ExpectPush(aggregates ...*models.Aggregate) *MockRepository

func (*MockRepository) ExpectPushError

func (m *MockRepository) ExpectPushError(err error, aggregates ...*models.Aggregate) *MockRepository

func (*MockRepository) Filter

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 *models.SearchQueryFactory) (uint64, error)

LatestSequence mocks base method

func (*MockRepository) PushAggregates

func (m *MockRepository) PushAggregates(arg0 context.Context, arg1 ...*models.Aggregate) error

PushAggregates mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

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) PushAggregates

func (mr *MockRepositoryMockRecorder) PushAggregates(arg0 interface{}, arg1 ...interface{}) *gomock.Call

PushAggregates indicates an expected call of PushAggregates

Jump to

Keyboard shortcuts

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