Files
tasks/service/history/shard/controller_mock.go
zeekay 5a601d081b rebrand: go.temporal.io/server -> github.com/hanzoai/tasks
Full module path rebrand from Temporal to Hanzo Tasks:
- go.mod module: github.com/hanzoai/tasks
- All internal Go imports updated (1906 files)
- cmd/server renamed to cmd/tasksd
- Binary name: tasksd (was temporal-server)
- Docker images: hanzoai/tasks (was temporalio/server)
- README rewritten with Hanzo Tasks branding
- LLM.md created with integration notes
- Makefile, goreleaser, CI workflows updated
- go.temporal.io/sdk and go.temporal.io/api imports preserved (separate repos)

Fork of Temporal.io (MIT license).
2026-03-19 10:36:40 -07:00

153 lines
5.1 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: controller.go
//
// Generated by this command:
//
// mockgen -package shard -source controller.go -destination controller_mock.go
//
// Package shard is a generated GoMock package.
package shard
import (
context "context"
reflect "reflect"
namespace "github.com/hanzoai/tasks/common/namespace"
pingable "github.com/hanzoai/tasks/common/pingable"
interfaces "github.com/hanzoai/tasks/service/history/interfaces"
gomock "go.uber.org/mock/gomock"
)
// MockController is a mock of Controller interface.
type MockController struct {
ctrl *gomock.Controller
recorder *MockControllerMockRecorder
isgomock struct{}
}
// MockControllerMockRecorder is the mock recorder for MockController.
type MockControllerMockRecorder struct {
mock *MockController
}
// NewMockController creates a new mock instance.
func NewMockController(ctrl *gomock.Controller) *MockController {
mock := &MockController{ctrl: ctrl}
mock.recorder = &MockControllerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockController) EXPECT() *MockControllerMockRecorder {
return m.recorder
}
// CloseShardByID mocks base method.
func (m *MockController) CloseShardByID(shardID int32) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "CloseShardByID", shardID)
}
// CloseShardByID indicates an expected call of CloseShardByID.
func (mr *MockControllerMockRecorder) CloseShardByID(shardID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseShardByID", reflect.TypeOf((*MockController)(nil).CloseShardByID), shardID)
}
// GetPingChecks mocks base method.
func (m *MockController) GetPingChecks() []pingable.Check {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPingChecks")
ret0, _ := ret[0].([]pingable.Check)
return ret0
}
// GetPingChecks indicates an expected call of GetPingChecks.
func (mr *MockControllerMockRecorder) GetPingChecks() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPingChecks", reflect.TypeOf((*MockController)(nil).GetPingChecks))
}
// GetShardByID mocks base method.
func (m *MockController) GetShardByID(shardID int32) (interfaces.ShardContext, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetShardByID", shardID)
ret0, _ := ret[0].(interfaces.ShardContext)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetShardByID indicates an expected call of GetShardByID.
func (mr *MockControllerMockRecorder) GetShardByID(shardID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetShardByID", reflect.TypeOf((*MockController)(nil).GetShardByID), shardID)
}
// GetShardByNamespaceWorkflow mocks base method.
func (m *MockController) GetShardByNamespaceWorkflow(namespaceID namespace.ID, workflowID string) (interfaces.ShardContext, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetShardByNamespaceWorkflow", namespaceID, workflowID)
ret0, _ := ret[0].(interfaces.ShardContext)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetShardByNamespaceWorkflow indicates an expected call of GetShardByNamespaceWorkflow.
func (mr *MockControllerMockRecorder) GetShardByNamespaceWorkflow(namespaceID, workflowID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetShardByNamespaceWorkflow", reflect.TypeOf((*MockController)(nil).GetShardByNamespaceWorkflow), namespaceID, workflowID)
}
// InitialShardsAcquired mocks base method.
func (m *MockController) InitialShardsAcquired(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitialShardsAcquired", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// InitialShardsAcquired indicates an expected call of InitialShardsAcquired.
func (mr *MockControllerMockRecorder) InitialShardsAcquired(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitialShardsAcquired", reflect.TypeOf((*MockController)(nil).InitialShardsAcquired), arg0)
}
// ShardIDs mocks base method.
func (m *MockController) ShardIDs() []int32 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ShardIDs")
ret0, _ := ret[0].([]int32)
return ret0
}
// ShardIDs indicates an expected call of ShardIDs.
func (mr *MockControllerMockRecorder) ShardIDs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardIDs", reflect.TypeOf((*MockController)(nil).ShardIDs))
}
// Start mocks base method.
func (m *MockController) Start() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start")
}
// Start indicates an expected call of Start.
func (mr *MockControllerMockRecorder) Start() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockController)(nil).Start))
}
// Stop mocks base method.
func (m *MockController) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockControllerMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockController)(nil).Stop))
}