Skip to content
Snippets Groups Projects
Store.go 2.2 KiB
Newer Older
  • Learn to ignore specific revisions
  • // Code generated by mockery v2.14.0. DO NOT EDIT.
    
    package mocks
    
    import (
    
    	southbound "code.fbi.h-da.de/danet/gosdn/controller/interfaces/southbound"
    	store "code.fbi.h-da.de/danet/gosdn/controller/store"
    
    	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: _a0
    func (_m *Store) Add(_a0 southbound.SouthboundInterface) error {
    	ret := _m.Called(_a0)
    
    	if rf, ok := ret.Get(0).(func(southbound.SouthboundInterface) error); ok {
    		r0 = rf(_a0)
    
    	} else {
    		r0 = ret.Error(0)
    	}
    
    	return r0
    }
    
    
    // Delete provides a mock function with given fields: _a0
    func (_m *Store) Delete(_a0 southbound.SouthboundInterface) error {
    	ret := _m.Called(_a0)
    
    	if rf, ok := ret.Get(0).(func(southbound.SouthboundInterface) error); ok {
    		r0 = rf(_a0)
    
    	} else {
    		r0 = ret.Error(0)
    	}
    
    	return r0
    }
    
    
    // Get provides a mock function with given fields: _a0
    func (_m *Store) Get(_a0 store.Query) (southbound.LoadedSbi, error) {
    	ret := _m.Called(_a0)
    
    	var r0 southbound.LoadedSbi
    	if rf, ok := ret.Get(0).(func(store.Query) southbound.LoadedSbi); ok {
    		r0 = rf(_a0)
    
    		r0 = ret.Get(0).(southbound.LoadedSbi)
    
    	if rf, ok := ret.Get(1).(func(store.Query) error); ok {
    		r1 = rf(_a0)
    
    	} else {
    		r1 = ret.Error(1)
    	}
    
    	return r0, r1
    }
    
    
    // GetAll provides a mock function with given fields:
    func (_m *Store) GetAll() ([]southbound.LoadedSbi, error) {
    
    	var r0 []southbound.LoadedSbi
    	if rf, ok := ret.Get(0).(func() []southbound.LoadedSbi); ok {
    
    		r0 = rf()
    	} else {
    		if ret.Get(0) != nil {
    
    			r0 = ret.Get(0).([]southbound.LoadedSbi)
    
    	var r1 error
    	if rf, ok := ret.Get(1).(func() error); ok {
    		r1 = rf()
    	} else {
    		r1 = ret.Error(1)
    	}
    
    	return r0, r1
    
    }
    
    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
    }