mock

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 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 NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Close

func (m *MockRepository) Close() error

Close mocks base method.

func (*MockRepository) CreateStream

func (m *MockRepository) CreateStream(ctx context.Context, stream, table string) error

CreateStream mocks base method.

func (*MockRepository) CreateTrackingTable

func (m *MockRepository) CreateTrackingTable(ctx context.Context, trackingTable, table string) error

CreateTrackingTable mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetMaxValue added in v0.3.1

func (m *MockRepository) GetMaxValue(ctx context.Context, table, orderingColumn string) (any, error)

GetMaxValue mocks base method.

func (*MockRepository) GetPrimaryKeys added in v0.3.1

func (m *MockRepository) GetPrimaryKeys(ctx context.Context, table string) ([]string, error)

GetPrimaryKeys mocks base method.

func (*MockRepository) GetRows added in v0.3.1

func (m *MockRepository) GetRows(ctx context.Context, table, orderingColumn string, fields []string, pos *position.Position, maxValue any, limit int) (*sqlx.Rows, error)

GetRows mocks base method.

func (*MockRepository) GetTrackingData

func (m *MockRepository) GetTrackingData(ctx context.Context, stream, trackingTable string, fields []string, offset, limit int) ([]map[string]any, error)

GetTrackingData mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Close

func (mr *MockRepositoryMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockRepositoryMockRecorder) CreateStream

func (mr *MockRepositoryMockRecorder) CreateStream(ctx, stream, table any) *gomock.Call

CreateStream indicates an expected call of CreateStream.

func (*MockRepositoryMockRecorder) CreateTrackingTable

func (mr *MockRepositoryMockRecorder) CreateTrackingTable(ctx, trackingTable, table any) *gomock.Call

CreateTrackingTable indicates an expected call of CreateTrackingTable.

func (*MockRepositoryMockRecorder) GetMaxValue added in v0.3.1

func (mr *MockRepositoryMockRecorder) GetMaxValue(ctx, table, orderingColumn any) *gomock.Call

GetMaxValue indicates an expected call of GetMaxValue.

func (*MockRepositoryMockRecorder) GetPrimaryKeys added in v0.3.1

func (mr *MockRepositoryMockRecorder) GetPrimaryKeys(ctx, table any) *gomock.Call

GetPrimaryKeys indicates an expected call of GetPrimaryKeys.

func (*MockRepositoryMockRecorder) GetRows added in v0.3.1

func (mr *MockRepositoryMockRecorder) GetRows(ctx, table, orderingColumn, fields, pos, maxValue, limit any) *gomock.Call

GetRows indicates an expected call of GetRows.

func (*MockRepositoryMockRecorder) GetTrackingData

func (mr *MockRepositoryMockRecorder) GetTrackingData(ctx, stream, trackingTable, fields, offset, limit any) *gomock.Call

GetTrackingData indicates an expected call of GetTrackingData.

Jump to

Keyboard shortcuts

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