// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package portsmocks import ( "context" "github.com/bnema/vev/internal/domain" "github.com/bnema/vev/internal/ports" "github.com/bnema/vev/internal/protocol/catalogue" mock "github.com/stretchr/testify/mock" ) // NewMockRemoteHostStore creates a new instance of MockRemoteHostStore. 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 NewMockRemoteHostStore(t interface { mock.TestingT Cleanup(func()) }) *MockRemoteHostStore { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockRemoteHostStore{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockRemoteHostStore is an autogenerated mock type for the RemoteHostStore type type MockRemoteHostStore struct { mock.Mock } type MockRemoteHostStore_Expecter struct { mock *mock.Mock } func (_m *MockRemoteHostStore) EXPECT() *MockRemoteHostStore_Expecter { return &MockRemoteHostStore_Expecter{mock: &_m.Mock} } // AddPinned provides a mock function for the type MockRemoteHostStore func (_mock *MockRemoteHostStore) AddPinned(target string) error { ret := _mock.Called(target) if len(ret) == 0 { panic("no return value specified for AddPinned") } var r0 error if returnFunc, ok := ret.Get(0).(func(string) error); ok { r0 = returnFunc(target) } else { r0 = ret.Error(0) } return r0 } // MockRemoteHostStore_AddPinned_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddPinned' type MockRemoteHostStore_AddPinned_Call struct { *mock.Call } // AddPinned is a helper method to define mock.On call // - target string func (_e *MockRemoteHostStore_Expecter) AddPinned(target any) *MockRemoteHostStore_AddPinned_Call { return &MockRemoteHostStore_AddPinned_Call{Call: _e.mock.On("AddPinned", target)} } func (_c *MockRemoteHostStore_AddPinned_Call) Run(run func(target string)) *MockRemoteHostStore_AddPinned_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockRemoteHostStore_AddPinned_Call) Return(err error) *MockRemoteHostStore_AddPinned_Call { _c.Call.Return(err) return _c } func (_c *MockRemoteHostStore_AddPinned_Call) RunAndReturn(run func(target string) error) *MockRemoteHostStore_AddPinned_Call { _c.Call.Return(run) return _c } // Forget provides a mock function for the type MockRemoteHostStore func (_mock *MockRemoteHostStore) Forget(target string) error { ret := _mock.Called(target) if len(ret) == 0 { panic("no return value specified for Forget") } var r0 error if returnFunc, ok := ret.Get(0).(func(string) error); ok { r0 = returnFunc(target) } else { r0 = ret.Error(0) } return r0 } // MockRemoteHostStore_Forget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forget' type MockRemoteHostStore_Forget_Call struct { *mock.Call } // Forget is a helper method to define mock.On call // - target string func (_e *MockRemoteHostStore_Expecter) Forget(target any) *MockRemoteHostStore_Forget_Call { return &MockRemoteHostStore_Forget_Call{Call: _e.mock.On("Forget", target)} } func (_c *MockRemoteHostStore_Forget_Call) Run(run func(target string)) *MockRemoteHostStore_Forget_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockRemoteHostStore_Forget_Call) Return(err error) *MockRemoteHostStore_Forget_Call { _c.Call.Return(err) return _c } func (_c *MockRemoteHostStore_Forget_Call) RunAndReturn(run func(target string) error) *MockRemoteHostStore_Forget_Call { _c.Call.Return(run) return _c } // Hosts provides a mock function for the type MockRemoteHostStore func (_mock *MockRemoteHostStore) Hosts() ([]domain.RemoteRegistration, []domain.RemoteRegistration, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for Hosts") } var r0 []domain.RemoteRegistration var r1 []domain.RemoteRegistration var r2 error if returnFunc, ok := ret.Get(0).(func() ([]domain.RemoteRegistration, []domain.RemoteRegistration, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() []domain.RemoteRegistration); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]domain.RemoteRegistration) } } if returnFunc, ok := ret.Get(1).(func() []domain.RemoteRegistration); ok { r1 = returnFunc() } else { if ret.Get(1) != nil { r1 = ret.Get(1).([]domain.RemoteRegistration) } } if returnFunc, ok := ret.Get(2).(func() error); ok { r2 = returnFunc() } else { r2 = ret.Error(2) } return r0, r1, r2 } // MockRemoteHostStore_Hosts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hosts' type MockRemoteHostStore_Hosts_Call struct { *mock.Call } // Hosts is a helper method to define mock.On call func (_e *MockRemoteHostStore_Expecter) Hosts() *MockRemoteHostStore_Hosts_Call { return &MockRemoteHostStore_Hosts_Call{Call: _e.mock.On("Hosts")} } func (_c *MockRemoteHostStore_Hosts_Call) Run(run func()) *MockRemoteHostStore_Hosts_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockRemoteHostStore_Hosts_Call) Return(pinned []domain.RemoteRegistration, learned []domain.RemoteRegistration, err error) *MockRemoteHostStore_Hosts_Call { _c.Call.Return(pinned, learned, err) return _c } func (_c *MockRemoteHostStore_Hosts_Call) RunAndReturn(run func() ([]domain.RemoteRegistration, []domain.RemoteRegistration, error)) *MockRemoteHostStore_Hosts_Call { _c.Call.Return(run) return _c } // Remember provides a mock function for the type MockRemoteHostStore func (_mock *MockRemoteHostStore) Remember(target string) error { ret := _mock.Called(target) if len(ret) == 0 { panic("no return value specified for Remember") } var r0 error if returnFunc, ok := ret.Get(0).(func(string) error); ok { r0 = returnFunc(target) } else { r0 = ret.Error(0) } return r0 } // MockRemoteHostStore_Remember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remember' type MockRemoteHostStore_Remember_Call struct { *mock.Call } // Remember is a helper method to define mock.On call // - target string func (_e *MockRemoteHostStore_Expecter) Remember(target any) *MockRemoteHostStore_Remember_Call { return &MockRemoteHostStore_Remember_Call{Call: _e.mock.On("Remember", target)} } func (_c *MockRemoteHostStore_Remember_Call) Run(run func(target string)) *MockRemoteHostStore_Remember_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockRemoteHostStore_Remember_Call) Return(err error) *MockRemoteHostStore_Remember_Call { _c.Call.Return(err) return _c } func (_c *MockRemoteHostStore_Remember_Call) RunAndReturn(run func(target string) error) *MockRemoteHostStore_Remember_Call { _c.Call.Return(run) return _c } // Remove provides a mock function for the type MockRemoteHostStore func (_mock *MockRemoteHostStore) Remove(target string) (bool, error) { ret := _mock.Called(target) if len(ret) == 0 { panic("no return value specified for Remove") } var r0 bool var r1 error if returnFunc, ok := ret.Get(0).(func(string) (bool, error)); ok { return returnFunc(target) } if returnFunc, ok := ret.Get(0).(func(string) bool); ok { r0 = returnFunc(target) } else { r0 = ret.Get(0).(bool) } if returnFunc, ok := ret.Get(1).(func(string) error); ok { r1 = returnFunc(target) } else { r1 = ret.Error(1) } return r0, r1 } // MockRemoteHostStore_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove' type MockRemoteHostStore_Remove_Call struct { *mock.Call } // Remove is a helper method to define mock.On call // - target string func (_e *MockRemoteHostStore_Expecter) Remove(target any) *MockRemoteHostStore_Remove_Call { return &MockRemoteHostStore_Remove_Call{Call: _e.mock.On("Remove", target)} } func (_c *MockRemoteHostStore_Remove_Call) Run(run func(target string)) *MockRemoteHostStore_Remove_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockRemoteHostStore_Remove_Call) Return(deleted bool, err error) *MockRemoteHostStore_Remove_Call { _c.Call.Return(deleted, err) return _c } func (_c *MockRemoteHostStore_Remove_Call) RunAndReturn(run func(target string) (bool, error)) *MockRemoteHostStore_Remove_Call { _c.Call.Return(run) return _c } // RemovePinned provides a mock function for the type MockRemoteHostStore func (_mock *MockRemoteHostStore) RemovePinned(target string) error { ret := _mock.Called(target) if len(ret) == 0 { panic("no return value specified for RemovePinned") } var r0 error if returnFunc, ok := ret.Get(0).(func(string) error); ok { r0 = returnFunc(target) } else { r0 = ret.Error(0) } return r0 } // MockRemoteHostStore_RemovePinned_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePinned' type MockRemoteHostStore_RemovePinned_Call struct { *mock.Call } // RemovePinned is a helper method to define mock.On call // - target string func (_e *MockRemoteHostStore_Expecter) RemovePinned(target any) *MockRemoteHostStore_RemovePinned_Call { return &MockRemoteHostStore_RemovePinned_Call{Call: _e.mock.On("RemovePinned", target)} } func (_c *MockRemoteHostStore_RemovePinned_Call) Run(run func(target string)) *MockRemoteHostStore_RemovePinned_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockRemoteHostStore_RemovePinned_Call) Return(err error) *MockRemoteHostStore_RemovePinned_Call { _c.Call.Return(err) return _c } func (_c *MockRemoteHostStore_RemovePinned_Call) RunAndReturn(run func(target string) error) *MockRemoteHostStore_RemovePinned_Call { _c.Call.Return(run) return _c } // NewMockRemoteCatalogClient creates a new instance of MockRemoteCatalogClient. 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 NewMockRemoteCatalogClient(t interface { mock.TestingT Cleanup(func()) }) *MockRemoteCatalogClient { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockRemoteCatalogClient{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockRemoteCatalogClient is an autogenerated mock type for the RemoteCatalogClient type type MockRemoteCatalogClient struct { mock.Mock } type MockRemoteCatalogClient_Expecter struct { mock *mock.Mock } func (_m *MockRemoteCatalogClient) EXPECT() *MockRemoteCatalogClient_Expecter { return &MockRemoteCatalogClient_Expecter{mock: &_m.Mock} } // List provides a mock function for the type MockRemoteCatalogClient func (_mock *MockRemoteCatalogClient) List(ctx context.Context, target string) (catalogue.RemoteCatalog, error) { ret := _mock.Called(ctx, target) if len(ret) == 0 { panic("no return value specified for List") } var r0 catalogue.RemoteCatalog var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, string) (catalogue.RemoteCatalog, error)); ok { return returnFunc(ctx, target) } if returnFunc, ok := ret.Get(0).(func(context.Context, string) catalogue.RemoteCatalog); ok { r0 = returnFunc(ctx, target) } else { r0 = ret.Get(0).(catalogue.RemoteCatalog) } if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { r1 = returnFunc(ctx, target) } else { r1 = ret.Error(1) } return r0, r1 } // MockRemoteCatalogClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List' type MockRemoteCatalogClient_List_Call struct { *mock.Call } // List is a helper method to define mock.On call // - ctx context.Context // - target string func (_e *MockRemoteCatalogClient_Expecter) List(ctx any, target any) *MockRemoteCatalogClient_List_Call { return &MockRemoteCatalogClient_List_Call{Call: _e.mock.On("List", ctx, target)} } func (_c *MockRemoteCatalogClient_List_Call) Run(run func(ctx context.Context, target string)) *MockRemoteCatalogClient_List_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } run( arg0, arg1, ) }) return _c } func (_c *MockRemoteCatalogClient_List_Call) Return(remoteCatalog catalogue.RemoteCatalog, err error) *MockRemoteCatalogClient_List_Call { _c.Call.Return(remoteCatalog, err) return _c } func (_c *MockRemoteCatalogClient_List_Call) RunAndReturn(run func(ctx context.Context, target string) (catalogue.RemoteCatalog, error)) *MockRemoteCatalogClient_List_Call { _c.Call.Return(run) return _c } // NewMockRemoteCatalogCache creates a new instance of MockRemoteCatalogCache. 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 NewMockRemoteCatalogCache(t interface { mock.TestingT Cleanup(func()) }) *MockRemoteCatalogCache { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockRemoteCatalogCache{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockRemoteCatalogCache is an autogenerated mock type for the RemoteCatalogCache type type MockRemoteCatalogCache struct { mock.Mock } type MockRemoteCatalogCache_Expecter struct { mock *mock.Mock } func (_m *MockRemoteCatalogCache) EXPECT() *MockRemoteCatalogCache_Expecter { return &MockRemoteCatalogCache_Expecter{mock: &_m.Mock} } // Load provides a mock function for the type MockRemoteCatalogCache func (_mock *MockRemoteCatalogCache) Load() ([]catalogue.RemoteCatalogCacheEntry, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for Load") } var r0 []catalogue.RemoteCatalogCacheEntry var r1 error if returnFunc, ok := ret.Get(0).(func() ([]catalogue.RemoteCatalogCacheEntry, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() []catalogue.RemoteCatalogCacheEntry); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]catalogue.RemoteCatalogCacheEntry) } } if returnFunc, ok := ret.Get(1).(func() error); ok { r1 = returnFunc() } else { r1 = ret.Error(1) } return r0, r1 } // MockRemoteCatalogCache_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load' type MockRemoteCatalogCache_Load_Call struct { *mock.Call } // Load is a helper method to define mock.On call func (_e *MockRemoteCatalogCache_Expecter) Load() *MockRemoteCatalogCache_Load_Call { return &MockRemoteCatalogCache_Load_Call{Call: _e.mock.On("Load")} } func (_c *MockRemoteCatalogCache_Load_Call) Run(run func()) *MockRemoteCatalogCache_Load_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockRemoteCatalogCache_Load_Call) Return(remoteCatalogCacheEntrys []catalogue.RemoteCatalogCacheEntry, err error) *MockRemoteCatalogCache_Load_Call { _c.Call.Return(remoteCatalogCacheEntrys, err) return _c } func (_c *MockRemoteCatalogCache_Load_Call) RunAndReturn(run func() ([]catalogue.RemoteCatalogCacheEntry, error)) *MockRemoteCatalogCache_Load_Call { _c.Call.Return(run) return _c } // Store provides a mock function for the type MockRemoteCatalogCache func (_mock *MockRemoteCatalogCache) Store(remoteCatalogCacheEntrys []catalogue.RemoteCatalogCacheEntry) error { ret := _mock.Called(remoteCatalogCacheEntrys) if len(ret) == 0 { panic("no return value specified for Store") } var r0 error if returnFunc, ok := ret.Get(0).(func([]catalogue.RemoteCatalogCacheEntry) error); ok { r0 = returnFunc(remoteCatalogCacheEntrys) } else { r0 = ret.Error(0) } return r0 } // MockRemoteCatalogCache_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store' type MockRemoteCatalogCache_Store_Call struct { *mock.Call } // Store is a helper method to define mock.On call // - remoteCatalogCacheEntrys []catalogue.RemoteCatalogCacheEntry func (_e *MockRemoteCatalogCache_Expecter) Store(remoteCatalogCacheEntrys any) *MockRemoteCatalogCache_Store_Call { return &MockRemoteCatalogCache_Store_Call{Call: _e.mock.On("Store", remoteCatalogCacheEntrys)} } func (_c *MockRemoteCatalogCache_Store_Call) Run(run func(remoteCatalogCacheEntrys []catalogue.RemoteCatalogCacheEntry)) *MockRemoteCatalogCache_Store_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 []catalogue.RemoteCatalogCacheEntry if args[0] != nil { arg0 = args[0].([]catalogue.RemoteCatalogCacheEntry) } run( arg0, ) }) return _c } func (_c *MockRemoteCatalogCache_Store_Call) Return(err error) *MockRemoteCatalogCache_Store_Call { _c.Call.Return(err) return _c } func (_c *MockRemoteCatalogCache_Store_Call) RunAndReturn(run func(remoteCatalogCacheEntrys []catalogue.RemoteCatalogCacheEntry) error) *MockRemoteCatalogCache_Store_Call { _c.Call.Return(run) return _c } // NewMockRemoteEndpointFactory creates a new instance of MockRemoteEndpointFactory. 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 NewMockRemoteEndpointFactory(t interface { mock.TestingT Cleanup(func()) }) *MockRemoteEndpointFactory { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockRemoteEndpointFactory{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockRemoteEndpointFactory is an autogenerated mock type for the RemoteEndpointFactory type type MockRemoteEndpointFactory struct { mock.Mock } type MockRemoteEndpointFactory_Expecter struct { mock *mock.Mock } func (_m *MockRemoteEndpointFactory) EXPECT() *MockRemoteEndpointFactory_Expecter { return &MockRemoteEndpointFactory_Expecter{mock: &_m.Mock} } // ResolveEndpoint provides a mock function for the type MockRemoteEndpointFactory func (_mock *MockRemoteEndpointFactory) ResolveEndpoint(ctx context.Context, endpoint string) (ports.RemoteEndpointBinding, error) { ret := _mock.Called(ctx, endpoint) if len(ret) == 0 { panic("no return value specified for ResolveEndpoint") } var r0 ports.RemoteEndpointBinding var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, string) (ports.RemoteEndpointBinding, error)); ok { return returnFunc(ctx, endpoint) } if returnFunc, ok := ret.Get(0).(func(context.Context, string) ports.RemoteEndpointBinding); ok { r0 = returnFunc(ctx, endpoint) } else { r0 = ret.Get(0).(ports.RemoteEndpointBinding) } if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { r1 = returnFunc(ctx, endpoint) } else { r1 = ret.Error(1) } return r0, r1 } // MockRemoteEndpointFactory_ResolveEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveEndpoint' type MockRemoteEndpointFactory_ResolveEndpoint_Call struct { *mock.Call } // ResolveEndpoint is a helper method to define mock.On call // - ctx context.Context // - endpoint string func (_e *MockRemoteEndpointFactory_Expecter) ResolveEndpoint(ctx any, endpoint any) *MockRemoteEndpointFactory_ResolveEndpoint_Call { return &MockRemoteEndpointFactory_ResolveEndpoint_Call{Call: _e.mock.On("ResolveEndpoint", ctx, endpoint)} } func (_c *MockRemoteEndpointFactory_ResolveEndpoint_Call) Run(run func(ctx context.Context, endpoint string)) *MockRemoteEndpointFactory_ResolveEndpoint_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } run( arg0, arg1, ) }) return _c } func (_c *MockRemoteEndpointFactory_ResolveEndpoint_Call) Return(remoteEndpointBinding ports.RemoteEndpointBinding, err error) *MockRemoteEndpointFactory_ResolveEndpoint_Call { _c.Call.Return(remoteEndpointBinding, err) return _c } func (_c *MockRemoteEndpointFactory_ResolveEndpoint_Call) RunAndReturn(run func(ctx context.Context, endpoint string) (ports.RemoteEndpointBinding, error)) *MockRemoteEndpointFactory_ResolveEndpoint_Call { _c.Call.Return(run) return _c } // NewMockClientHostRegistry creates a new instance of MockClientHostRegistry. 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 NewMockClientHostRegistry(t interface { mock.TestingT Cleanup(func()) }) *MockClientHostRegistry { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockClientHostRegistry{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockClientHostRegistry is an autogenerated mock type for the ClientHostRegistry type type MockClientHostRegistry struct { mock.Mock } type MockClientHostRegistry_Expecter struct { mock *mock.Mock } func (_m *MockClientHostRegistry) EXPECT() *MockClientHostRegistry_Expecter { return &MockClientHostRegistry_Expecter{mock: &_m.Mock} } // ResolveEndpoint provides a mock function for the type MockClientHostRegistry func (_mock *MockClientHostRegistry) ResolveEndpoint(ctx context.Context, endpoint string) (ports.RemoteEndpointBinding, error) { ret := _mock.Called(ctx, endpoint) if len(ret) == 0 { panic("no return value specified for ResolveEndpoint") } var r0 ports.RemoteEndpointBinding var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context, string) (ports.RemoteEndpointBinding, error)); ok { return returnFunc(ctx, endpoint) } if returnFunc, ok := ret.Get(0).(func(context.Context, string) ports.RemoteEndpointBinding); ok { r0 = returnFunc(ctx, endpoint) } else { r0 = ret.Get(0).(ports.RemoteEndpointBinding) } if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { r1 = returnFunc(ctx, endpoint) } else { r1 = ret.Error(1) } return r0, r1 } // MockClientHostRegistry_ResolveEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveEndpoint' type MockClientHostRegistry_ResolveEndpoint_Call struct { *mock.Call } // ResolveEndpoint is a helper method to define mock.On call // - ctx context.Context // - endpoint string func (_e *MockClientHostRegistry_Expecter) ResolveEndpoint(ctx any, endpoint any) *MockClientHostRegistry_ResolveEndpoint_Call { return &MockClientHostRegistry_ResolveEndpoint_Call{Call: _e.mock.On("ResolveEndpoint", ctx, endpoint)} } func (_c *MockClientHostRegistry_ResolveEndpoint_Call) Run(run func(ctx context.Context, endpoint string)) *MockClientHostRegistry_ResolveEndpoint_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } run( arg0, arg1, ) }) return _c } func (_c *MockClientHostRegistry_ResolveEndpoint_Call) Return(remoteEndpointBinding ports.RemoteEndpointBinding, err error) *MockClientHostRegistry_ResolveEndpoint_Call { _c.Call.Return(remoteEndpointBinding, err) return _c } func (_c *MockClientHostRegistry_ResolveEndpoint_Call) RunAndReturn(run func(ctx context.Context, endpoint string) (ports.RemoteEndpointBinding, error)) *MockClientHostRegistry_ResolveEndpoint_Call { _c.Call.Return(run) return _c }