Files
tasks/service/history/workflow/task_refresher_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

72 lines
2.9 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: task_refresher.go
//
// Generated by this command:
//
// mockgen -package workflow -source task_refresher.go -destination task_refresher_mock.go
//
// Package workflow is a generated GoMock package.
package workflow
import (
context "context"
reflect "reflect"
persistence "github.com/hanzoai/tasks/api/persistence/v1"
interfaces "github.com/hanzoai/tasks/service/history/interfaces"
gomock "go.uber.org/mock/gomock"
)
// MockTaskRefresher is a mock of TaskRefresher interface.
type MockTaskRefresher struct {
ctrl *gomock.Controller
recorder *MockTaskRefresherMockRecorder
isgomock struct{}
}
// MockTaskRefresherMockRecorder is the mock recorder for MockTaskRefresher.
type MockTaskRefresherMockRecorder struct {
mock *MockTaskRefresher
}
// NewMockTaskRefresher creates a new mock instance.
func NewMockTaskRefresher(ctrl *gomock.Controller) *MockTaskRefresher {
mock := &MockTaskRefresher{ctrl: ctrl}
mock.recorder = &MockTaskRefresherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTaskRefresher) EXPECT() *MockTaskRefresherMockRecorder {
return m.recorder
}
// PartialRefresh mocks base method.
func (m *MockTaskRefresher) PartialRefresh(ctx context.Context, mutableState interfaces.MutableState, minVersionedTransition *persistence.VersionedTransition, previousPendingChildIds map[int64]struct{}, shouldSkipGeneratingCloseTransferTask bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PartialRefresh", ctx, mutableState, minVersionedTransition, previousPendingChildIds, shouldSkipGeneratingCloseTransferTask)
ret0, _ := ret[0].(error)
return ret0
}
// PartialRefresh indicates an expected call of PartialRefresh.
func (mr *MockTaskRefresherMockRecorder) PartialRefresh(ctx, mutableState, minVersionedTransition, previousPendingChildIds, shouldSkipGeneratingCloseTransferTask any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PartialRefresh", reflect.TypeOf((*MockTaskRefresher)(nil).PartialRefresh), ctx, mutableState, minVersionedTransition, previousPendingChildIds, shouldSkipGeneratingCloseTransferTask)
}
// Refresh mocks base method.
func (m *MockTaskRefresher) Refresh(ctx context.Context, mutableState interfaces.MutableState, shouldSkipGeneratingCloseTransferTask bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Refresh", ctx, mutableState, shouldSkipGeneratingCloseTransferTask)
ret0, _ := ret[0].(error)
return ret0
}
// Refresh indicates an expected call of Refresh.
func (mr *MockTaskRefresherMockRecorder) Refresh(ctx, mutableState, shouldSkipGeneratingCloseTransferTask any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockTaskRefresher)(nil).Refresh), ctx, mutableState, shouldSkipGeneratingCloseTransferTask)
}