mock

package
v0.0.0-...-8429761 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: PostgreSQL Imports: 8 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 MockQueryRouter

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

MockQueryRouter is a mock of QueryRouter interface.

func NewMockQueryRouter

func NewMockQueryRouter(ctrl *gomock.Controller) *MockQueryRouter

NewMockQueryRouter creates a new mock instance.

func (*MockQueryRouter) DataShardsRoutes

func (m *MockQueryRouter) DataShardsRoutes() []*routingstate.DataShardRoute

DataShardsRoutes mocks base method.

func (*MockQueryRouter) DeparseKeyWithRangesInternal

func (m *MockQueryRouter) DeparseKeyWithRangesInternal(ctx context.Context, key string, krs []*kr.KeyRange) (*routingstate.DataShardRoute, error)

DeparseKeyWithRangesInternal mocks base method.

func (*MockQueryRouter) EXPECT

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

func (*MockQueryRouter) Initialize

func (m *MockQueryRouter) Initialize() bool

Initialize mocks base method.

func (*MockQueryRouter) Initialized

func (m *MockQueryRouter) Initialized() bool

Initialized mocks base method.

func (*MockQueryRouter) Mgr

func (m *MockQueryRouter) Mgr() meta.EntityMgr

Mgr mocks base method.

func (*MockQueryRouter) Route

Route mocks base method.

func (*MockQueryRouter) WorldShardsRoutes

func (m *MockQueryRouter) WorldShardsRoutes() []*routingstate.DataShardRoute

WorldShardsRoutes mocks base method.

type MockQueryRouterMockRecorder

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

MockQueryRouterMockRecorder is the mock recorder for MockQueryRouter.

func (*MockQueryRouterMockRecorder) DataShardsRoutes

func (mr *MockQueryRouterMockRecorder) DataShardsRoutes() *gomock.Call

DataShardsRoutes indicates an expected call of DataShardsRoutes.

func (*MockQueryRouterMockRecorder) DeparseKeyWithRangesInternal

func (mr *MockQueryRouterMockRecorder) DeparseKeyWithRangesInternal(ctx, key, krs interface{}) *gomock.Call

DeparseKeyWithRangesInternal indicates an expected call of DeparseKeyWithRangesInternal.

func (*MockQueryRouterMockRecorder) Initialize

func (mr *MockQueryRouterMockRecorder) Initialize() *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockQueryRouterMockRecorder) Initialized

func (mr *MockQueryRouterMockRecorder) Initialized() *gomock.Call

Initialized indicates an expected call of Initialized.

func (*MockQueryRouterMockRecorder) Mgr

Mgr indicates an expected call of Mgr.

func (*MockQueryRouterMockRecorder) Route

func (mr *MockQueryRouterMockRecorder) Route(ctx, stmt, sph interface{}) *gomock.Call

Route indicates an expected call of Route.

func (*MockQueryRouterMockRecorder) WorldShardsRoutes

func (mr *MockQueryRouterMockRecorder) WorldShardsRoutes() *gomock.Call

WorldShardsRoutes indicates an expected call of WorldShardsRoutes.

Jump to

Keyboard shortcuts

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