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

package mocks

import (
	dbmodel "github.com/milvus-io/milvus/internal/metastore/db/dbmodel"
	mock "github.com/stretchr/testify/mock"
)

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

// Delete provides a mock function with given fields: tenantID, grantID, privilege
func (_m *IGrantIDDb) Delete(tenantID string, grantID int64, privilege string) error {
	ret := _m.Called(tenantID, grantID, privilege)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, int64, string) error); ok {
		r0 = rf(tenantID, grantID, privilege)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GetGrantIDs provides a mock function with given fields: tenantID, grantID, privilege, preloadGrant, preloadGrantor
func (_m *IGrantIDDb) GetGrantIDs(tenantID string, grantID int64, privilege string, preloadGrant bool, preloadGrantor bool) ([]*dbmodel.GrantID, error) {
	ret := _m.Called(tenantID, grantID, privilege, preloadGrant, preloadGrantor)

	var r0 []*dbmodel.GrantID
	if rf, ok := ret.Get(0).(func(string, int64, string, bool, bool) []*dbmodel.GrantID); ok {
		r0 = rf(tenantID, grantID, privilege, preloadGrant, preloadGrantor)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*dbmodel.GrantID)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string, int64, string, bool, bool) error); ok {
		r1 = rf(tenantID, grantID, privilege, preloadGrant, preloadGrantor)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Insert provides a mock function with given fields: in
func (_m *IGrantIDDb) Insert(in *dbmodel.GrantID) error {
	ret := _m.Called(in)

	var r0 error
	if rf, ok := ret.Get(0).(func(*dbmodel.GrantID) error); ok {
		r0 = rf(in)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

	return mock
}
