Skip to content
Snippets Groups Projects
Verified Commit 1e71c16b authored by André Sterba's avatar André Sterba
Browse files

Update mocks

parent 45c20ff2
No related branches found
No related tags found
1 merge request!557Draft: Refactor nucleus to remove hard dependencies on structs
......@@ -3,7 +3,7 @@
package mocks
import (
store "code.fbi.h-da.de/danet/gosdn/controller/interfaces/store"
ports "code.fbi.h-da.de/danet/gosdn/controller/nucleus/domain/ports"
uuid "github.com/google/uuid"
mock "github.com/stretchr/testify/mock"
)
......@@ -14,11 +14,11 @@ type Store struct {
}
// Add provides a mock function with given fields: item
func (_m *Store) Add(item store.Storable) error {
func (_m *Store) Add(item ports.Storable) error {
ret := _m.Called(item)
var r0 error
if rf, ok := ret.Get(0).(func(store.Storable) error); ok {
if rf, ok := ret.Get(0).(func(ports.Storable) error); ok {
r0 = rf(item)
} else {
r0 = ret.Error(0)
......@@ -56,19 +56,19 @@ func (_m *Store) Exists(id uuid.UUID) bool {
}
// Get provides a mock function with given fields: id
func (_m *Store) Get(id uuid.UUID) (store.Storable, error) {
func (_m *Store) Get(id uuid.UUID) (ports.Storable, error) {
ret := _m.Called(id)
var r0 store.Storable
var r0 ports.Storable
var r1 error
if rf, ok := ret.Get(0).(func(uuid.UUID) (store.Storable, error)); ok {
if rf, ok := ret.Get(0).(func(uuid.UUID) (ports.Storable, error)); ok {
return rf(id)
}
if rf, ok := ret.Get(0).(func(uuid.UUID) store.Storable); ok {
if rf, ok := ret.Get(0).(func(uuid.UUID) ports.Storable); ok {
r0 = rf(id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.Storable)
r0 = ret.Get(0).(ports.Storable)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment