Skip to content
Snippets Groups Projects
Store.go 2.27 KiB
Newer Older
  • Learn to ignore specific revisions
  • // Code generated by mockery v2.20.0. DO NOT EDIT.
    
    André Sterba's avatar
    André Sterba committed
    	ports "code.fbi.h-da.de/danet/gosdn/controller/nucleus/domain/ports"
    
    	uuid "github.com/google/uuid"
    
    	mock "github.com/stretchr/testify/mock"
    )
    
    // Store is an autogenerated mock type for the Store type
    type Store struct {
    	mock.Mock
    }
    
    
    // Add provides a mock function with given fields: item
    
    André Sterba's avatar
    André Sterba committed
    func (_m *Store) Add(item ports.Storable) error {
    
    	ret := _m.Called(item)
    
    André Sterba's avatar
    André Sterba committed
    	if rf, ok := ret.Get(0).(func(ports.Storable) error); ok {
    
    	} else {
    		r0 = ret.Error(0)
    	}
    
    	return r0
    }
    
    
    // Delete provides a mock function with given fields: id
    func (_m *Store) Delete(id uuid.UUID) error {
    	ret := _m.Called(id)
    
    	if rf, ok := ret.Get(0).(func(uuid.UUID) error); ok {
    		r0 = rf(id)
    
    	} else {
    		r0 = ret.Error(0)
    	}
    
    	return r0
    }
    
    
    // Exists provides a mock function with given fields: id
    func (_m *Store) Exists(id uuid.UUID) bool {
    	ret := _m.Called(id)
    
    	var r0 bool
    	if rf, ok := ret.Get(0).(func(uuid.UUID) bool); ok {
    		r0 = rf(id)
    
    		r0 = ret.Get(0).(bool)
    
    // Get provides a mock function with given fields: id
    
    André Sterba's avatar
    André Sterba committed
    func (_m *Store) Get(id uuid.UUID) (ports.Storable, error) {
    
    	ret := _m.Called(id)
    
    André Sterba's avatar
    André Sterba committed
    	var r0 ports.Storable
    
    André Sterba's avatar
    André Sterba committed
    	if rf, ok := ret.Get(0).(func(uuid.UUID) (ports.Storable, error)); ok {
    
    André Sterba's avatar
    André Sterba committed
    	if rf, ok := ret.Get(0).(func(uuid.UUID) ports.Storable); ok {
    
    André Sterba's avatar
    André Sterba committed
    			r0 = ret.Get(0).(ports.Storable)
    
    	if rf, ok := ret.Get(1).(func(uuid.UUID) error); ok {
    		r1 = rf(id)
    
    	} else {
    		r1 = ret.Error(1)
    	}
    
    	return r0, r1
    }
    
    
    // UUIDs provides a mock function with given fields:
    func (_m *Store) UUIDs() []uuid.UUID {
    	ret := _m.Called()
    
    	var r0 []uuid.UUID
    	if rf, ok := ret.Get(0).(func() []uuid.UUID); ok {
    		r0 = rf()
    
    		if ret.Get(0) != nil {
    			r0 = ret.Get(0).([]uuid.UUID)
    		}
    
    }
    
    type mockConstructorTestingTNewStore interface {
    	mock.TestingT
    	Cleanup(func())
    }
    
    // NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    func NewStore(t mockConstructorTestingTNewStore) *Store {
    	mock := &Store{}
    	mock.Mock.Test(t)
    
    	t.Cleanup(func() { mock.AssertExpectations(t) })
    
    	return mock
    }