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).
75 lines
2.8 KiB
Go
75 lines
2.8 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: conflict_resolver.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package ndc -source conflict_resolver.go -destination conflict_resolver_mock.go
|
|
//
|
|
|
|
// Package ndc is a generated GoMock package.
|
|
package ndc
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
interfaces "github.com/hanzoai/tasks/service/history/interfaces"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockConflictResolver is a mock of ConflictResolver interface.
|
|
type MockConflictResolver struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockConflictResolverMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockConflictResolverMockRecorder is the mock recorder for MockConflictResolver.
|
|
type MockConflictResolverMockRecorder struct {
|
|
mock *MockConflictResolver
|
|
}
|
|
|
|
// NewMockConflictResolver creates a new mock instance.
|
|
func NewMockConflictResolver(ctrl *gomock.Controller) *MockConflictResolver {
|
|
mock := &MockConflictResolver{ctrl: ctrl}
|
|
mock.recorder = &MockConflictResolverMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockConflictResolver) EXPECT() *MockConflictResolverMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetOrRebuildCurrentMutableState mocks base method.
|
|
func (m *MockConflictResolver) GetOrRebuildCurrentMutableState(ctx context.Context, branchIndex int32, incomingVersion int64) (interfaces.MutableState, bool, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetOrRebuildCurrentMutableState", ctx, branchIndex, incomingVersion)
|
|
ret0, _ := ret[0].(interfaces.MutableState)
|
|
ret1, _ := ret[1].(bool)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetOrRebuildCurrentMutableState indicates an expected call of GetOrRebuildCurrentMutableState.
|
|
func (mr *MockConflictResolverMockRecorder) GetOrRebuildCurrentMutableState(ctx, branchIndex, incomingVersion any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrRebuildCurrentMutableState", reflect.TypeOf((*MockConflictResolver)(nil).GetOrRebuildCurrentMutableState), ctx, branchIndex, incomingVersion)
|
|
}
|
|
|
|
// GetOrRebuildMutableState mocks base method.
|
|
func (m *MockConflictResolver) GetOrRebuildMutableState(ctx context.Context, branchIndex int32) (interfaces.MutableState, bool, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetOrRebuildMutableState", ctx, branchIndex)
|
|
ret0, _ := ret[0].(interfaces.MutableState)
|
|
ret1, _ := ret[1].(bool)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetOrRebuildMutableState indicates an expected call of GetOrRebuildMutableState.
|
|
func (mr *MockConflictResolverMockRecorder) GetOrRebuildMutableState(ctx, branchIndex any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrRebuildMutableState", reflect.TypeOf((*MockConflictResolver)(nil).GetOrRebuildMutableState), ctx, branchIndex)
|
|
}
|