| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * https://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| // Code generated by mockery; DO NOT EDIT. |
| // github.com/vektra/mockery |
| // template: testify |
| |
| package options |
| |
| import ( |
| mock "github.com/stretchr/testify/mock" |
| ) |
| |
| // NewMockWithDiscoveryOption creates a new instance of MockWithDiscoveryOption. 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 NewMockWithDiscoveryOption(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockWithDiscoveryOption { |
| mock := &MockWithDiscoveryOption{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockWithDiscoveryOption is an autogenerated mock type for the WithDiscoveryOption type |
| type MockWithDiscoveryOption struct { |
| mock.Mock |
| } |
| |
| type MockWithDiscoveryOption_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockWithDiscoveryOption) EXPECT() *MockWithDiscoveryOption_Expecter { |
| return &MockWithDiscoveryOption_Expecter{mock: &_m.Mock} |
| } |
| |
| // isDiscoveryOption provides a mock function for the type MockWithDiscoveryOption |
| func (_mock *MockWithDiscoveryOption) isDiscoveryOption() bool { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for isDiscoveryOption") |
| } |
| |
| var r0 bool |
| if returnFunc, ok := ret.Get(0).(func() bool); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(bool) |
| } |
| return r0 |
| } |
| |
| // MockWithDiscoveryOption_isDiscoveryOption_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'isDiscoveryOption' |
| type MockWithDiscoveryOption_isDiscoveryOption_Call struct { |
| *mock.Call |
| } |
| |
| // isDiscoveryOption is a helper method to define mock.On call |
| func (_e *MockWithDiscoveryOption_Expecter) isDiscoveryOption() *MockWithDiscoveryOption_isDiscoveryOption_Call { |
| return &MockWithDiscoveryOption_isDiscoveryOption_Call{Call: _e.mock.On("isDiscoveryOption")} |
| } |
| |
| func (_c *MockWithDiscoveryOption_isDiscoveryOption_Call) Run(run func()) *MockWithDiscoveryOption_isDiscoveryOption_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockWithDiscoveryOption_isDiscoveryOption_Call) Return(b bool) *MockWithDiscoveryOption_isDiscoveryOption_Call { |
| _c.Call.Return(b) |
| return _c |
| } |
| |
| func (_c *MockWithDiscoveryOption_isDiscoveryOption_Call) RunAndReturn(run func() bool) *MockWithDiscoveryOption_isDiscoveryOption_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockDiscoveryOptionProtocol creates a new instance of MockDiscoveryOptionProtocol. 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 NewMockDiscoveryOptionProtocol(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockDiscoveryOptionProtocol { |
| mock := &MockDiscoveryOptionProtocol{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockDiscoveryOptionProtocol is an autogenerated mock type for the DiscoveryOptionProtocol type |
| type MockDiscoveryOptionProtocol struct { |
| mock.Mock |
| } |
| |
| type MockDiscoveryOptionProtocol_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockDiscoveryOptionProtocol) EXPECT() *MockDiscoveryOptionProtocol_Expecter { |
| return &MockDiscoveryOptionProtocol_Expecter{mock: &_m.Mock} |
| } |
| |
| // GetProtocolName provides a mock function for the type MockDiscoveryOptionProtocol |
| func (_mock *MockDiscoveryOptionProtocol) GetProtocolName() string { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetProtocolName") |
| } |
| |
| var r0 string |
| if returnFunc, ok := ret.Get(0).(func() string); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionProtocol_GetProtocolName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProtocolName' |
| type MockDiscoveryOptionProtocol_GetProtocolName_Call struct { |
| *mock.Call |
| } |
| |
| // GetProtocolName is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionProtocol_Expecter) GetProtocolName() *MockDiscoveryOptionProtocol_GetProtocolName_Call { |
| return &MockDiscoveryOptionProtocol_GetProtocolName_Call{Call: _e.mock.On("GetProtocolName")} |
| } |
| |
| func (_c *MockDiscoveryOptionProtocol_GetProtocolName_Call) Run(run func()) *MockDiscoveryOptionProtocol_GetProtocolName_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionProtocol_GetProtocolName_Call) Return(s string) *MockDiscoveryOptionProtocol_GetProtocolName_Call { |
| _c.Call.Return(s) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionProtocol_GetProtocolName_Call) RunAndReturn(run func() string) *MockDiscoveryOptionProtocol_GetProtocolName_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockDiscoveryOptionTransport creates a new instance of MockDiscoveryOptionTransport. 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 NewMockDiscoveryOptionTransport(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockDiscoveryOptionTransport { |
| mock := &MockDiscoveryOptionTransport{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockDiscoveryOptionTransport is an autogenerated mock type for the DiscoveryOptionTransport type |
| type MockDiscoveryOptionTransport struct { |
| mock.Mock |
| } |
| |
| type MockDiscoveryOptionTransport_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockDiscoveryOptionTransport) EXPECT() *MockDiscoveryOptionTransport_Expecter { |
| return &MockDiscoveryOptionTransport_Expecter{mock: &_m.Mock} |
| } |
| |
| // GetTransportName provides a mock function for the type MockDiscoveryOptionTransport |
| func (_mock *MockDiscoveryOptionTransport) GetTransportName() string { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetTransportName") |
| } |
| |
| var r0 string |
| if returnFunc, ok := ret.Get(0).(func() string); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionTransport_GetTransportName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransportName' |
| type MockDiscoveryOptionTransport_GetTransportName_Call struct { |
| *mock.Call |
| } |
| |
| // GetTransportName is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionTransport_Expecter) GetTransportName() *MockDiscoveryOptionTransport_GetTransportName_Call { |
| return &MockDiscoveryOptionTransport_GetTransportName_Call{Call: _e.mock.On("GetTransportName")} |
| } |
| |
| func (_c *MockDiscoveryOptionTransport_GetTransportName_Call) Run(run func()) *MockDiscoveryOptionTransport_GetTransportName_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionTransport_GetTransportName_Call) Return(s string) *MockDiscoveryOptionTransport_GetTransportName_Call { |
| _c.Call.Return(s) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionTransport_GetTransportName_Call) RunAndReturn(run func() string) *MockDiscoveryOptionTransport_GetTransportName_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockDiscoveryOptionDeviceName creates a new instance of MockDiscoveryOptionDeviceName. 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 NewMockDiscoveryOptionDeviceName(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockDiscoveryOptionDeviceName { |
| mock := &MockDiscoveryOptionDeviceName{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockDiscoveryOptionDeviceName is an autogenerated mock type for the DiscoveryOptionDeviceName type |
| type MockDiscoveryOptionDeviceName struct { |
| mock.Mock |
| } |
| |
| type MockDiscoveryOptionDeviceName_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockDiscoveryOptionDeviceName) EXPECT() *MockDiscoveryOptionDeviceName_Expecter { |
| return &MockDiscoveryOptionDeviceName_Expecter{mock: &_m.Mock} |
| } |
| |
| // GetDeviceName provides a mock function for the type MockDiscoveryOptionDeviceName |
| func (_mock *MockDiscoveryOptionDeviceName) GetDeviceName() string { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetDeviceName") |
| } |
| |
| var r0 string |
| if returnFunc, ok := ret.Get(0).(func() string); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionDeviceName_GetDeviceName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeviceName' |
| type MockDiscoveryOptionDeviceName_GetDeviceName_Call struct { |
| *mock.Call |
| } |
| |
| // GetDeviceName is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionDeviceName_Expecter) GetDeviceName() *MockDiscoveryOptionDeviceName_GetDeviceName_Call { |
| return &MockDiscoveryOptionDeviceName_GetDeviceName_Call{Call: _e.mock.On("GetDeviceName")} |
| } |
| |
| func (_c *MockDiscoveryOptionDeviceName_GetDeviceName_Call) Run(run func()) *MockDiscoveryOptionDeviceName_GetDeviceName_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionDeviceName_GetDeviceName_Call) Return(s string) *MockDiscoveryOptionDeviceName_GetDeviceName_Call { |
| _c.Call.Return(s) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionDeviceName_GetDeviceName_Call) RunAndReturn(run func() string) *MockDiscoveryOptionDeviceName_GetDeviceName_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockDiscoveryOptionLocalAddress creates a new instance of MockDiscoveryOptionLocalAddress. 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 NewMockDiscoveryOptionLocalAddress(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockDiscoveryOptionLocalAddress { |
| mock := &MockDiscoveryOptionLocalAddress{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockDiscoveryOptionLocalAddress is an autogenerated mock type for the DiscoveryOptionLocalAddress type |
| type MockDiscoveryOptionLocalAddress struct { |
| mock.Mock |
| } |
| |
| type MockDiscoveryOptionLocalAddress_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockDiscoveryOptionLocalAddress) EXPECT() *MockDiscoveryOptionLocalAddress_Expecter { |
| return &MockDiscoveryOptionLocalAddress_Expecter{mock: &_m.Mock} |
| } |
| |
| // GetLocalAddress provides a mock function for the type MockDiscoveryOptionLocalAddress |
| func (_mock *MockDiscoveryOptionLocalAddress) GetLocalAddress() string { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetLocalAddress") |
| } |
| |
| var r0 string |
| if returnFunc, ok := ret.Get(0).(func() string); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionLocalAddress_GetLocalAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLocalAddress' |
| type MockDiscoveryOptionLocalAddress_GetLocalAddress_Call struct { |
| *mock.Call |
| } |
| |
| // GetLocalAddress is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionLocalAddress_Expecter) GetLocalAddress() *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call { |
| return &MockDiscoveryOptionLocalAddress_GetLocalAddress_Call{Call: _e.mock.On("GetLocalAddress")} |
| } |
| |
| func (_c *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call) Run(run func()) *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call) Return(s string) *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call { |
| _c.Call.Return(s) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call) RunAndReturn(run func() string) *MockDiscoveryOptionLocalAddress_GetLocalAddress_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockDiscoveryOptionRemoteAddress creates a new instance of MockDiscoveryOptionRemoteAddress. 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 NewMockDiscoveryOptionRemoteAddress(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockDiscoveryOptionRemoteAddress { |
| mock := &MockDiscoveryOptionRemoteAddress{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockDiscoveryOptionRemoteAddress is an autogenerated mock type for the DiscoveryOptionRemoteAddress type |
| type MockDiscoveryOptionRemoteAddress struct { |
| mock.Mock |
| } |
| |
| type MockDiscoveryOptionRemoteAddress_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockDiscoveryOptionRemoteAddress) EXPECT() *MockDiscoveryOptionRemoteAddress_Expecter { |
| return &MockDiscoveryOptionRemoteAddress_Expecter{mock: &_m.Mock} |
| } |
| |
| // GetRemoteAddress provides a mock function for the type MockDiscoveryOptionRemoteAddress |
| func (_mock *MockDiscoveryOptionRemoteAddress) GetRemoteAddress() string { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetRemoteAddress") |
| } |
| |
| var r0 string |
| if returnFunc, ok := ret.Get(0).(func() string); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRemoteAddress' |
| type MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call struct { |
| *mock.Call |
| } |
| |
| // GetRemoteAddress is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionRemoteAddress_Expecter) GetRemoteAddress() *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call { |
| return &MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call{Call: _e.mock.On("GetRemoteAddress")} |
| } |
| |
| func (_c *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call) Run(run func()) *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call) Return(s string) *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call { |
| _c.Call.Return(s) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call) RunAndReturn(run func() string) *MockDiscoveryOptionRemoteAddress_GetRemoteAddress_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockDiscoveryOptionProtocolSpecific creates a new instance of MockDiscoveryOptionProtocolSpecific. 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 NewMockDiscoveryOptionProtocolSpecific(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockDiscoveryOptionProtocolSpecific { |
| mock := &MockDiscoveryOptionProtocolSpecific{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockDiscoveryOptionProtocolSpecific is an autogenerated mock type for the DiscoveryOptionProtocolSpecific type |
| type MockDiscoveryOptionProtocolSpecific struct { |
| mock.Mock |
| } |
| |
| type MockDiscoveryOptionProtocolSpecific_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockDiscoveryOptionProtocolSpecific) EXPECT() *MockDiscoveryOptionProtocolSpecific_Expecter { |
| return &MockDiscoveryOptionProtocolSpecific_Expecter{mock: &_m.Mock} |
| } |
| |
| // GetKey provides a mock function for the type MockDiscoveryOptionProtocolSpecific |
| func (_mock *MockDiscoveryOptionProtocolSpecific) GetKey() string { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetKey") |
| } |
| |
| var r0 string |
| if returnFunc, ok := ret.Get(0).(func() string); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(string) |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionProtocolSpecific_GetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKey' |
| type MockDiscoveryOptionProtocolSpecific_GetKey_Call struct { |
| *mock.Call |
| } |
| |
| // GetKey is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionProtocolSpecific_Expecter) GetKey() *MockDiscoveryOptionProtocolSpecific_GetKey_Call { |
| return &MockDiscoveryOptionProtocolSpecific_GetKey_Call{Call: _e.mock.On("GetKey")} |
| } |
| |
| func (_c *MockDiscoveryOptionProtocolSpecific_GetKey_Call) Run(run func()) *MockDiscoveryOptionProtocolSpecific_GetKey_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionProtocolSpecific_GetKey_Call) Return(s string) *MockDiscoveryOptionProtocolSpecific_GetKey_Call { |
| _c.Call.Return(s) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionProtocolSpecific_GetKey_Call) RunAndReturn(run func() string) *MockDiscoveryOptionProtocolSpecific_GetKey_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // GetValue provides a mock function for the type MockDiscoveryOptionProtocolSpecific |
| func (_mock *MockDiscoveryOptionProtocolSpecific) GetValue() any { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for GetValue") |
| } |
| |
| var r0 any |
| if returnFunc, ok := ret.Get(0).(func() any); ok { |
| r0 = returnFunc() |
| } else { |
| if ret.Get(0) != nil { |
| r0 = ret.Get(0).(any) |
| } |
| } |
| return r0 |
| } |
| |
| // MockDiscoveryOptionProtocolSpecific_GetValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValue' |
| type MockDiscoveryOptionProtocolSpecific_GetValue_Call struct { |
| *mock.Call |
| } |
| |
| // GetValue is a helper method to define mock.On call |
| func (_e *MockDiscoveryOptionProtocolSpecific_Expecter) GetValue() *MockDiscoveryOptionProtocolSpecific_GetValue_Call { |
| return &MockDiscoveryOptionProtocolSpecific_GetValue_Call{Call: _e.mock.On("GetValue")} |
| } |
| |
| func (_c *MockDiscoveryOptionProtocolSpecific_GetValue_Call) Run(run func()) *MockDiscoveryOptionProtocolSpecific_GetValue_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionProtocolSpecific_GetValue_Call) Return(v any) *MockDiscoveryOptionProtocolSpecific_GetValue_Call { |
| _c.Call.Return(v) |
| return _c |
| } |
| |
| func (_c *MockDiscoveryOptionProtocolSpecific_GetValue_Call) RunAndReturn(run func() any) *MockDiscoveryOptionProtocolSpecific_GetValue_Call { |
| _c.Call.Return(run) |
| return _c |
| } |
| |
| // NewMockWithOption creates a new instance of MockWithOption. 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 NewMockWithOption(t interface { |
| mock.TestingT |
| Cleanup(func()) |
| }) *MockWithOption { |
| mock := &MockWithOption{} |
| mock.Mock.Test(t) |
| |
| t.Cleanup(func() { mock.AssertExpectations(t) }) |
| |
| return mock |
| } |
| |
| // MockWithOption is an autogenerated mock type for the WithOption type |
| type MockWithOption struct { |
| mock.Mock |
| } |
| |
| type MockWithOption_Expecter struct { |
| mock *mock.Mock |
| } |
| |
| func (_m *MockWithOption) EXPECT() *MockWithOption_Expecter { |
| return &MockWithOption_Expecter{mock: &_m.Mock} |
| } |
| |
| // isOption provides a mock function for the type MockWithOption |
| func (_mock *MockWithOption) isOption() bool { |
| ret := _mock.Called() |
| |
| if len(ret) == 0 { |
| panic("no return value specified for isOption") |
| } |
| |
| var r0 bool |
| if returnFunc, ok := ret.Get(0).(func() bool); ok { |
| r0 = returnFunc() |
| } else { |
| r0 = ret.Get(0).(bool) |
| } |
| return r0 |
| } |
| |
| // MockWithOption_isOption_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'isOption' |
| type MockWithOption_isOption_Call struct { |
| *mock.Call |
| } |
| |
| // isOption is a helper method to define mock.On call |
| func (_e *MockWithOption_Expecter) isOption() *MockWithOption_isOption_Call { |
| return &MockWithOption_isOption_Call{Call: _e.mock.On("isOption")} |
| } |
| |
| func (_c *MockWithOption_isOption_Call) Run(run func()) *MockWithOption_isOption_Call { |
| _c.Call.Run(func(args mock.Arguments) { |
| run() |
| }) |
| return _c |
| } |
| |
| func (_c *MockWithOption_isOption_Call) Return(b bool) *MockWithOption_isOption_Call { |
| _c.Call.Return(b) |
| return _c |
| } |
| |
| func (_c *MockWithOption_isOption_Call) RunAndReturn(run func() bool) *MockWithOption_isOption_Call { |
| _c.Call.Return(run) |
| return _c |
| } |