mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Upgrade go to the 1.25.0 ## How did you test it? - [x] built - [x] run locally and tested manually ~Blocked by #8174~ --------- Signed-off-by: Roman Dmytrenko <[email protected]> Co-authored-by: Stephan Behnke <[email protected]> Co-authored-by: Stephan Behnke <[email protected]>
85 lines
2.7 KiB
Go
85 lines
2.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: factory.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package sdk -source factory.go -destination factory_mock.go
|
|
//
|
|
|
|
// Package sdk is a generated GoMock package.
|
|
package sdk
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
client "go.temporal.io/sdk/client"
|
|
worker "go.temporal.io/sdk/worker"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockClientFactory is a mock of ClientFactory interface.
|
|
type MockClientFactory struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockClientFactoryMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockClientFactoryMockRecorder is the mock recorder for MockClientFactory.
|
|
type MockClientFactoryMockRecorder struct {
|
|
mock *MockClientFactory
|
|
}
|
|
|
|
// NewMockClientFactory creates a new mock instance.
|
|
func NewMockClientFactory(ctrl *gomock.Controller) *MockClientFactory {
|
|
mock := &MockClientFactory{ctrl: ctrl}
|
|
mock.recorder = &MockClientFactoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockClientFactory) EXPECT() *MockClientFactoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetSystemClient mocks base method.
|
|
func (m *MockClientFactory) GetSystemClient() client.Client {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSystemClient")
|
|
ret0, _ := ret[0].(client.Client)
|
|
return ret0
|
|
}
|
|
|
|
// GetSystemClient indicates an expected call of GetSystemClient.
|
|
func (mr *MockClientFactoryMockRecorder) GetSystemClient() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSystemClient", reflect.TypeOf((*MockClientFactory)(nil).GetSystemClient))
|
|
}
|
|
|
|
// NewClient mocks base method.
|
|
func (m *MockClientFactory) NewClient(options client.Options) client.Client {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "NewClient", options)
|
|
ret0, _ := ret[0].(client.Client)
|
|
return ret0
|
|
}
|
|
|
|
// NewClient indicates an expected call of NewClient.
|
|
func (mr *MockClientFactoryMockRecorder) NewClient(options any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewClient", reflect.TypeOf((*MockClientFactory)(nil).NewClient), options)
|
|
}
|
|
|
|
// NewWorker mocks base method.
|
|
func (m *MockClientFactory) NewWorker(arg0 client.Client, taskQueue string, options worker.Options) worker.Worker {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "NewWorker", arg0, taskQueue, options)
|
|
ret0, _ := ret[0].(worker.Worker)
|
|
return ret0
|
|
}
|
|
|
|
// NewWorker indicates an expected call of NewWorker.
|
|
func (mr *MockClientFactoryMockRecorder) NewWorker(arg0, taskQueue, options any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewWorker", reflect.TypeOf((*MockClientFactory)(nil).NewWorker), arg0, taskQueue, options)
|
|
}
|