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).
59 lines
1.8 KiB
Go
59 lines
1.8 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: buffer_event_flusher.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package ndc -source buffer_event_flusher.go -destination buffer_event_flusher_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"
|
|
)
|
|
|
|
// MockBufferEventFlusher is a mock of BufferEventFlusher interface.
|
|
type MockBufferEventFlusher struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockBufferEventFlusherMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockBufferEventFlusherMockRecorder is the mock recorder for MockBufferEventFlusher.
|
|
type MockBufferEventFlusherMockRecorder struct {
|
|
mock *MockBufferEventFlusher
|
|
}
|
|
|
|
// NewMockBufferEventFlusher creates a new mock instance.
|
|
func NewMockBufferEventFlusher(ctrl *gomock.Controller) *MockBufferEventFlusher {
|
|
mock := &MockBufferEventFlusher{ctrl: ctrl}
|
|
mock.recorder = &MockBufferEventFlusherMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockBufferEventFlusher) EXPECT() *MockBufferEventFlusherMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// flush mocks base method.
|
|
func (m *MockBufferEventFlusher) flush(ctx context.Context) (interfaces.WorkflowContext, interfaces.MutableState, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "flush", ctx)
|
|
ret0, _ := ret[0].(interfaces.WorkflowContext)
|
|
ret1, _ := ret[1].(interfaces.MutableState)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// flush indicates an expected call of flush.
|
|
func (mr *MockBufferEventFlusherMockRecorder) flush(ctx any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "flush", reflect.TypeOf((*MockBufferEventFlusher)(nil).flush), ctx)
|
|
}
|