mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
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).
88 lines
3.7 KiB
Go
88 lines
3.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: delete_manager.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package deletemanager -source delete_manager.go -destination delete_manager_mock.go
|
|
//
|
|
|
|
// Package deletemanager is a generated GoMock package.
|
|
package deletemanager
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
common "go.temporal.io/api/common/v1"
|
|
namespace "github.com/hanzoai/tasks/common/namespace"
|
|
interfaces "github.com/hanzoai/tasks/service/history/interfaces"
|
|
tasks "github.com/hanzoai/tasks/service/history/tasks"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockDeleteManager is a mock of DeleteManager interface.
|
|
type MockDeleteManager struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockDeleteManagerMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockDeleteManagerMockRecorder is the mock recorder for MockDeleteManager.
|
|
type MockDeleteManagerMockRecorder struct {
|
|
mock *MockDeleteManager
|
|
}
|
|
|
|
// NewMockDeleteManager creates a new mock instance.
|
|
func NewMockDeleteManager(ctrl *gomock.Controller) *MockDeleteManager {
|
|
mock := &MockDeleteManager{ctrl: ctrl}
|
|
mock.recorder = &MockDeleteManagerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockDeleteManager) EXPECT() *MockDeleteManagerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AddDeleteExecutionTask mocks base method.
|
|
func (m *MockDeleteManager) AddDeleteExecutionTask(ctx context.Context, nsID namespace.ID, we *common.WorkflowExecution, ms interfaces.MutableState) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddDeleteExecutionTask", ctx, nsID, we, ms)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddDeleteExecutionTask indicates an expected call of AddDeleteExecutionTask.
|
|
func (mr *MockDeleteManagerMockRecorder) AddDeleteExecutionTask(ctx, nsID, we, ms any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDeleteExecutionTask", reflect.TypeOf((*MockDeleteManager)(nil).AddDeleteExecutionTask), ctx, nsID, we, ms)
|
|
}
|
|
|
|
// DeleteWorkflowExecution mocks base method.
|
|
func (m *MockDeleteManager) DeleteWorkflowExecution(ctx context.Context, nsID namespace.ID, we *common.WorkflowExecution, weCtx interfaces.WorkflowContext, ms interfaces.MutableState, stage *tasks.DeleteWorkflowExecutionStage) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DeleteWorkflowExecution", ctx, nsID, we, weCtx, ms, stage)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DeleteWorkflowExecution indicates an expected call of DeleteWorkflowExecution.
|
|
func (mr *MockDeleteManagerMockRecorder) DeleteWorkflowExecution(ctx, nsID, we, weCtx, ms, stage any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowExecution", reflect.TypeOf((*MockDeleteManager)(nil).DeleteWorkflowExecution), ctx, nsID, we, weCtx, ms, stage)
|
|
}
|
|
|
|
// DeleteWorkflowExecutionByRetention mocks base method.
|
|
func (m *MockDeleteManager) DeleteWorkflowExecutionByRetention(ctx context.Context, nsID namespace.ID, we *common.WorkflowExecution, weCtx interfaces.WorkflowContext, ms interfaces.MutableState, stage *tasks.DeleteWorkflowExecutionStage) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DeleteWorkflowExecutionByRetention", ctx, nsID, we, weCtx, ms, stage)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DeleteWorkflowExecutionByRetention indicates an expected call of DeleteWorkflowExecutionByRetention.
|
|
func (mr *MockDeleteManagerMockRecorder) DeleteWorkflowExecutionByRetention(ctx, nsID, we, weCtx, ms, stage any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowExecutionByRetention", reflect.TypeOf((*MockDeleteManager)(nil).DeleteWorkflowExecutionByRetention), ctx, nsID, we, weCtx, ms, stage)
|
|
}
|