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).
71 lines
2.5 KiB
Go
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)
|
|
}
|