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

package rootcoord

import mock "github.com/stretchr/testify/mock"

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

type MockFileResourceObserver_Expecter struct {
	mock *mock.Mock
}

func (_m *MockFileResourceObserver) EXPECT() *MockFileResourceObserver_Expecter {
	return &MockFileResourceObserver_Expecter{mock: &_m.Mock}
}

// CheckAllQnReady provides a mock function with no fields
func (_m *MockFileResourceObserver) CheckAllQnReady() error {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for CheckAllQnReady")
	}

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

	return r0
}

// MockFileResourceObserver_CheckAllQnReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckAllQnReady'
type MockFileResourceObserver_CheckAllQnReady_Call struct {
	*mock.Call
}

// CheckAllQnReady is a helper method to define mock.On call
func (_e *MockFileResourceObserver_Expecter) CheckAllQnReady() *MockFileResourceObserver_CheckAllQnReady_Call {
	return &MockFileResourceObserver_CheckAllQnReady_Call{Call: _e.mock.On("CheckAllQnReady")}
}

func (_c *MockFileResourceObserver_CheckAllQnReady_Call) Run(run func()) *MockFileResourceObserver_CheckAllQnReady_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockFileResourceObserver_CheckAllQnReady_Call) Return(_a0 error) *MockFileResourceObserver_CheckAllQnReady_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockFileResourceObserver_CheckAllQnReady_Call) RunAndReturn(run func() error) *MockFileResourceObserver_CheckAllQnReady_Call {
	_c.Call.Return(run)
	return _c
}

// InitMeta provides a mock function with given fields: meta
func (_m *MockFileResourceObserver) InitMeta(meta IMetaTable) {
	_m.Called(meta)
}

// MockFileResourceObserver_InitMeta_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitMeta'
type MockFileResourceObserver_InitMeta_Call struct {
	*mock.Call
}

// InitMeta is a helper method to define mock.On call
//   - meta IMetaTable
func (_e *MockFileResourceObserver_Expecter) InitMeta(meta interface{}) *MockFileResourceObserver_InitMeta_Call {
	return &MockFileResourceObserver_InitMeta_Call{Call: _e.mock.On("InitMeta", meta)}
}

func (_c *MockFileResourceObserver_InitMeta_Call) Run(run func(meta IMetaTable)) *MockFileResourceObserver_InitMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(IMetaTable))
	})
	return _c
}

func (_c *MockFileResourceObserver_InitMeta_Call) Return() *MockFileResourceObserver_InitMeta_Call {
	_c.Call.Return()
	return _c
}

func (_c *MockFileResourceObserver_InitMeta_Call) RunAndReturn(run func(IMetaTable)) *MockFileResourceObserver_InitMeta_Call {
	_c.Run(run)
	return _c
}

// Notify provides a mock function with no fields
func (_m *MockFileResourceObserver) Notify() {
	_m.Called()
}

// MockFileResourceObserver_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
type MockFileResourceObserver_Notify_Call struct {
	*mock.Call
}

// Notify is a helper method to define mock.On call
func (_e *MockFileResourceObserver_Expecter) Notify() *MockFileResourceObserver_Notify_Call {
	return &MockFileResourceObserver_Notify_Call{Call: _e.mock.On("Notify")}
}

func (_c *MockFileResourceObserver_Notify_Call) Run(run func()) *MockFileResourceObserver_Notify_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockFileResourceObserver_Notify_Call) Return() *MockFileResourceObserver_Notify_Call {
	_c.Call.Return()
	return _c
}

func (_c *MockFileResourceObserver_Notify_Call) RunAndReturn(run func()) *MockFileResourceObserver_Notify_Call {
	_c.Run(run)
	return _c
}

// Sync provides a mock function with no fields
func (_m *MockFileResourceObserver) Sync() error {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for Sync")
	}

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

	return r0
}

// MockFileResourceObserver_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
type MockFileResourceObserver_Sync_Call struct {
	*mock.Call
}

// Sync is a helper method to define mock.On call
func (_e *MockFileResourceObserver_Expecter) Sync() *MockFileResourceObserver_Sync_Call {
	return &MockFileResourceObserver_Sync_Call{Call: _e.mock.On("Sync")}
}

func (_c *MockFileResourceObserver_Sync_Call) Run(run func()) *MockFileResourceObserver_Sync_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockFileResourceObserver_Sync_Call) Return(_a0 error) *MockFileResourceObserver_Sync_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockFileResourceObserver_Sync_Call) RunAndReturn(run func() error) *MockFileResourceObserver_Sync_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockFileResourceObserver creates a new instance of MockFileResourceObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockFileResourceObserver(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileResourceObserver {
	mock := &MockFileResourceObserver{}
	mock.Mock.Test(t)

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

	return mock
}
