Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockQueryRouter
- func (m *MockQueryRouter) DataShardsRoutes() []*routingstate.DataShardRoute
- func (m *MockQueryRouter) DeparseKeyWithRangesInternal(ctx context.Context, key string, krs []*kr.KeyRange) (*routingstate.DataShardRoute, error)
- func (m *MockQueryRouter) EXPECT() *MockQueryRouterMockRecorder
- func (m *MockQueryRouter) Initialize() bool
- func (m *MockQueryRouter) Initialized() bool
- func (m *MockQueryRouter) Mgr() meta.EntityMgr
- func (m *MockQueryRouter) Route(ctx context.Context, stmt lyx.Node, sph session.SessionParamsHolder) (routingstate.RoutingState, error)
- func (m *MockQueryRouter) WorldShardsRoutes() []*routingstate.DataShardRoute
- type MockQueryRouterMockRecorder
- func (mr *MockQueryRouterMockRecorder) DataShardsRoutes() *gomock.Call
- func (mr *MockQueryRouterMockRecorder) DeparseKeyWithRangesInternal(ctx, key, krs interface{}) *gomock.Call
- func (mr *MockQueryRouterMockRecorder) Initialize() *gomock.Call
- func (mr *MockQueryRouterMockRecorder) Initialized() *gomock.Call
- func (mr *MockQueryRouterMockRecorder) Mgr() *gomock.Call
- func (mr *MockQueryRouterMockRecorder) Route(ctx, stmt, sph interface{}) *gomock.Call
- func (mr *MockQueryRouterMockRecorder) WorldShardsRoutes() *gomock.Call
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 ¶
func (m *MockQueryRouter) EXPECT() *MockQueryRouterMockRecorder
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) Route ¶
func (m *MockQueryRouter) Route(ctx context.Context, stmt lyx.Node, sph session.SessionParamsHolder) (routingstate.RoutingState, error)
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 ¶
func (mr *MockQueryRouterMockRecorder) Mgr() *gomock.Call
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.