Files
tasks/service/history/replication/progress_cache_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

71 lines
2.5 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: progress_cache.go
//
// Generated by this command:
//
// mockgen -package replication -source progress_cache.go -destination progress_cache_mock.go
//
// Package replication is a generated GoMock package.
package replication
import (
reflect "reflect"
history "github.com/hanzoai/tasks/api/history/v1"
persistence "github.com/hanzoai/tasks/api/persistence/v1"
gomock "go.uber.org/mock/gomock"
)
// MockProgressCache is a mock of ProgressCache interface.
type MockProgressCache struct {
ctrl *gomock.Controller
recorder *MockProgressCacheMockRecorder
isgomock struct{}
}
// MockProgressCacheMockRecorder is the mock recorder for MockProgressCache.
type MockProgressCacheMockRecorder struct {
mock *MockProgressCache
}
// NewMockProgressCache creates a new mock instance.
func NewMockProgressCache(ctrl *gomock.Controller) *MockProgressCache {
mock := &MockProgressCache{ctrl: ctrl}
mock.recorder = &MockProgressCacheMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockProgressCache) EXPECT() *MockProgressCacheMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockProgressCache) Get(runID string, targetClusterID int32) *ReplicationProgress {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", runID, targetClusterID)
ret0, _ := ret[0].(*ReplicationProgress)
return ret0
}
// Get indicates an expected call of Get.
func (mr *MockProgressCacheMockRecorder) Get(runID, targetClusterID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockProgressCache)(nil).Get), runID, targetClusterID)
}
// Update mocks base method.
func (m *MockProgressCache) Update(runID string, targetClusterID int32, versionedTransitions []*persistence.VersionedTransition, eventVersionHistoryItems []*history.VersionHistoryItem) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", runID, targetClusterID, versionedTransitions, eventVersionHistoryItems)
ret0, _ := ret[0].(error)
return ret0
}
// Update indicates an expected call of Update.
func (mr *MockProgressCacheMockRecorder) Update(runID, targetClusterID, versionedTransitions, eventVersionHistoryItems any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockProgressCache)(nil).Update), runID, targetClusterID, versionedTransitions, eventVersionHistoryItems)
}