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

package mocks

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

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

// Add provides a mock function with given fields: _a0
func (_m *RoleService) Add(_a0 rbac.Role) error {
	ret := _m.Called(_a0)

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

	return r0
}

// Delete provides a mock function with given fields: _a0
func (_m *RoleService) Delete(_a0 rbac.Role) error {
	ret := _m.Called(_a0)

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

	return r0
}

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

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

	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 *RoleService) GetAll() ([]rbac.Role, error) {
	ret := _m.Called()

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

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

	return r0, r1
}

// Update provides a mock function with given fields: _a0
func (_m *RoleService) Update(_a0 rbac.Role) error {
	ret := _m.Called(_a0)

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

	return r0
}

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

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

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

	return mock
}
