Files
tasks/common/persistence/history_branch_util_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

88 lines
3.7 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: history_branch_util.go
//
// Generated by this command:
//
// mockgen -package persistence -source history_branch_util.go -destination history_branch_util_mock.go
//
// Package persistence is a generated GoMock package.
package persistence
import (
reflect "reflect"
time "time"
persistence "github.com/hanzoai/tasks/api/persistence/v1"
gomock "go.uber.org/mock/gomock"
)
// MockHistoryBranchUtil is a mock of HistoryBranchUtil interface.
type MockHistoryBranchUtil struct {
ctrl *gomock.Controller
recorder *MockHistoryBranchUtilMockRecorder
isgomock struct{}
}
// MockHistoryBranchUtilMockRecorder is the mock recorder for MockHistoryBranchUtil.
type MockHistoryBranchUtilMockRecorder struct {
mock *MockHistoryBranchUtil
}
// NewMockHistoryBranchUtil creates a new mock instance.
func NewMockHistoryBranchUtil(ctrl *gomock.Controller) *MockHistoryBranchUtil {
mock := &MockHistoryBranchUtil{ctrl: ctrl}
mock.recorder = &MockHistoryBranchUtilMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockHistoryBranchUtil) EXPECT() *MockHistoryBranchUtilMockRecorder {
return m.recorder
}
// NewHistoryBranch mocks base method.
func (m *MockHistoryBranchUtil) NewHistoryBranch(namespaceID, workflowID, runID, treeID string, branchID *string, ancestors []*persistence.HistoryBranchRange, runTimeout, executionTimeout, retentionDuration time.Duration) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewHistoryBranch", namespaceID, workflowID, runID, treeID, branchID, ancestors, runTimeout, executionTimeout, retentionDuration)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NewHistoryBranch indicates an expected call of NewHistoryBranch.
func (mr *MockHistoryBranchUtilMockRecorder) NewHistoryBranch(namespaceID, workflowID, runID, treeID, branchID, ancestors, runTimeout, executionTimeout, retentionDuration any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewHistoryBranch", reflect.TypeOf((*MockHistoryBranchUtil)(nil).NewHistoryBranch), namespaceID, workflowID, runID, treeID, branchID, ancestors, runTimeout, executionTimeout, retentionDuration)
}
// ParseHistoryBranchInfo mocks base method.
func (m *MockHistoryBranchUtil) ParseHistoryBranchInfo(branchToken []byte) (*persistence.HistoryBranch, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ParseHistoryBranchInfo", branchToken)
ret0, _ := ret[0].(*persistence.HistoryBranch)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ParseHistoryBranchInfo indicates an expected call of ParseHistoryBranchInfo.
func (mr *MockHistoryBranchUtilMockRecorder) ParseHistoryBranchInfo(branchToken any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseHistoryBranchInfo", reflect.TypeOf((*MockHistoryBranchUtil)(nil).ParseHistoryBranchInfo), branchToken)
}
// UpdateHistoryBranchInfo mocks base method.
func (m *MockHistoryBranchUtil) UpdateHistoryBranchInfo(branchToken []byte, branchInfo *persistence.HistoryBranch, runID string) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateHistoryBranchInfo", branchToken, branchInfo, runID)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateHistoryBranchInfo indicates an expected call of UpdateHistoryBranchInfo.
func (mr *MockHistoryBranchUtilMockRecorder) UpdateHistoryBranchInfo(branchToken, branchInfo, runID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHistoryBranchInfo", reflect.TypeOf((*MockHistoryBranchUtil)(nil).UpdateHistoryBranchInfo), branchToken, branchInfo, runID)
}