// Code generated by mockery v2.20.0. DO NOT EDIT.

package mocks

import (
	networkdomain "code.fbi.h-da.de/danet/gosdn/controller/interfaces/networkdomain"
	networkelement "code.fbi.h-da.de/danet/gosdn/controller/interfaces/networkelement"
	mock "github.com/stretchr/testify/mock"

	store "code.fbi.h-da.de/danet/gosdn/controller/store"

	uuid "github.com/google/uuid"
)

// PndStore is an autogenerated mock type for the PndStore type
type PndStore struct {
	mock.Mock
}

// Add provides a mock function with given fields: _a0
func (_m *PndStore) Add(_a0 networkdomain.NetworkDomain) error {
	ret := _m.Called(_a0)

	var r0 error
	if rf, ok := ret.Get(0).(func(networkdomain.NetworkDomain) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// AddPendingChannel provides a mock function with given fields: id, ch
func (_m *PndStore) AddPendingChannel(id uuid.UUID, ch chan networkelement.Details) {
	_m.Called(id, ch)
}

// Delete provides a mock function with given fields: _a0
func (_m *PndStore) Delete(_a0 networkdomain.NetworkDomain) error {
	ret := _m.Called(_a0)

	var r0 error
	if rf, ok := ret.Get(0).(func(networkdomain.NetworkDomain) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function with given fields: _a0
func (_m *PndStore) Get(_a0 store.Query) (networkdomain.LoadedPnd, error) {
	ret := _m.Called(_a0)

	var r0 networkdomain.LoadedPnd
	var r1 error
	if rf, ok := ret.Get(0).(func(store.Query) (networkdomain.LoadedPnd, error)); ok {
		return rf(_a0)
	}
	if rf, ok := ret.Get(0).(func(store.Query) networkdomain.LoadedPnd); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Get(0).(networkdomain.LoadedPnd)
	}

	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 *PndStore) GetAll() ([]networkdomain.LoadedPnd, error) {
	ret := _m.Called()

	var r0 []networkdomain.LoadedPnd
	var r1 error
	if rf, ok := ret.Get(0).(func() ([]networkdomain.LoadedPnd, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() []networkdomain.LoadedPnd); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]networkdomain.LoadedPnd)
		}
	}

	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// PendingChannels provides a mock function with given fields: id, parseErrors
func (_m *PndStore) PendingChannels(id uuid.UUID, parseErrors ...error) (chan networkelement.Details, error) {
	_va := make([]interface{}, len(parseErrors))
	for _i := range parseErrors {
		_va[_i] = parseErrors[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, id)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 chan networkelement.Details
	var r1 error
	if rf, ok := ret.Get(0).(func(uuid.UUID, ...error) (chan networkelement.Details, error)); ok {
		return rf(id, parseErrors...)
	}
	if rf, ok := ret.Get(0).(func(uuid.UUID, ...error) chan networkelement.Details); ok {
		r0 = rf(id, parseErrors...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(chan networkelement.Details)
		}
	}

	if rf, ok := ret.Get(1).(func(uuid.UUID, ...error) error); ok {
		r1 = rf(id, parseErrors...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// RemovePendingChannel provides a mock function with given fields: id
func (_m *PndStore) RemovePendingChannel(id uuid.UUID) {
	_m.Called(id)
}

type mockConstructorTestingTNewPndStore interface {
	mock.TestingT
	Cleanup(func())
}

// NewPndStore creates a new instance of PndStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewPndStore(t mockConstructorTestingTNewPndStore) *PndStore {
	mock := &PndStore{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
