Skip to content
Snippets Groups Projects
Commit 8287846f authored by Neil Schark's avatar Neil Schark
Browse files

updated mock

parent 4e45930f
Branches
No related tags found
1 merge request!404Enable export and import of SDN configuration
Pipeline #124552 failed
......@@ -24,13 +24,13 @@ type NetworkDomain struct {
mock.Mock
}
// AddNetworkElement provides a mock function with given fields: name, opts, sid
func (_m *NetworkDomain) AddNetworkElement(name string, opts *transport.TransportOption, sid uuid.UUID) (uuid.UUID, error) {
ret := _m.Called(name, opts, sid)
// AddNetworkElement provides a mock function with given fields: name, opts, sid, networkElement
func (_m *NetworkDomain) AddNetworkElement(name string, opts *transport.TransportOption, sid uuid.UUID, networkElement uuid.UUID) (uuid.UUID, error) {
ret := _m.Called(name, opts, sid, networkElement)
var r0 uuid.UUID
if rf, ok := ret.Get(0).(func(string, *transport.TransportOption, uuid.UUID) uuid.UUID); ok {
r0 = rf(name, opts, sid)
if rf, ok := ret.Get(0).(func(string, *transport.TransportOption, uuid.UUID, uuid.UUID) uuid.UUID); ok {
r0 = rf(name, opts, sid, networkElement)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(uuid.UUID)
......@@ -38,8 +38,8 @@ func (_m *NetworkDomain) AddNetworkElement(name string, opts *transport.Transpor
}
var r1 error
if rf, ok := ret.Get(1).(func(string, *transport.TransportOption, uuid.UUID) error); ok {
r1 = rf(name, opts, sid)
if rf, ok := ret.Get(1).(func(string, *transport.TransportOption, uuid.UUID, uuid.UUID) error); ok {
r1 = rf(name, opts, sid, networkElement)
} else {
r1 = ret.Error(1)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment