| // Code generated by mockery v0.0.0-dev. DO NOT EDIT. |
| |
| package mocks |
| |
| import ( |
| mock "github.com/stretchr/testify/mock" |
| client "go.temporal.io/sdk/client" |
| ) |
| |
| // TemporalProvider is an autogenerated mock type for the TemporalProvider type |
| type TemporalProvider struct { |
| mock.Mock |
| } |
| |
| // NewClient provides a mock function with given fields: |
| func (_m *TemporalProvider) NewClient() (client.Client, func(), error) { |
| ret := _m.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for NewClient") |
| } |
| |
| var r0 client.Client |
| var r1 func() |
| var r2 error |
| if rf, ok := ret.Get(0).(func() (client.Client, func(), error)); ok { |
| return rf() |
| } |
| if rf, ok := ret.Get(0).(func() client.Client); ok { |
| r0 = rf() |
| } else { |
| if ret.Get(0) != nil { |
| r0 = ret.Get(0).(client.Client) |
| } |
| } |
| |
| if rf, ok := ret.Get(1).(func() func()); ok { |
| r1 = rf() |
| } else { |
| if ret.Get(1) != nil { |
| r1 = ret.Get(1).(func()) |
| } |
| } |
| |
| if rf, ok := ret.Get(2).(func() error); ok { |
| r2 = rf() |
| } else { |
| r2 = ret.Error(2) |
| } |
| |
| return r0, r1, r2 |
| } |
| |
| // NewTemporalProvider creates a new instance of TemporalProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. |
| // The first argument is typically a *testing.T value. |
| func NewTemporalProvider(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *TemporalProvider { |
| mock := &TemporalProvider{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |