// Code generated by mockery. DO NOT EDIT.

package mock_clientspace

import (
	clientspace "github.com/anyproto/anytype-heart/space/clientspace"
	mock "github.com/stretchr/testify/mock"
)

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

type MockspaceIndexer_Expecter struct {
	mock *mock.Mock
}

func (_m *MockspaceIndexer) EXPECT() *MockspaceIndexer_Expecter {
	return &MockspaceIndexer_Expecter{mock: &_m.Mock}
}

// ReindexMarketplaceSpace provides a mock function with given fields: space
func (_m *MockspaceIndexer) ReindexMarketplaceSpace(space clientspace.Space) error {
	ret := _m.Called(space)

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

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

	return r0
}

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

// ReindexMarketplaceSpace is a helper method to define mock.On call
//   - space clientspace.Space
func (_e *MockspaceIndexer_Expecter) ReindexMarketplaceSpace(space interface{}) *MockspaceIndexer_ReindexMarketplaceSpace_Call {
	return &MockspaceIndexer_ReindexMarketplaceSpace_Call{Call: _e.mock.On("ReindexMarketplaceSpace", space)}
}

func (_c *MockspaceIndexer_ReindexMarketplaceSpace_Call) Run(run func(space clientspace.Space)) *MockspaceIndexer_ReindexMarketplaceSpace_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(clientspace.Space))
	})
	return _c
}

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

func (_c *MockspaceIndexer_ReindexMarketplaceSpace_Call) RunAndReturn(run func(clientspace.Space) error) *MockspaceIndexer_ReindexMarketplaceSpace_Call {
	_c.Call.Return(run)
	return _c
}

// ReindexSpace provides a mock function with given fields: space
func (_m *MockspaceIndexer) ReindexSpace(space clientspace.Space) error {
	ret := _m.Called(space)

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

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

	return r0
}

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

// ReindexSpace is a helper method to define mock.On call
//   - space clientspace.Space
func (_e *MockspaceIndexer_Expecter) ReindexSpace(space interface{}) *MockspaceIndexer_ReindexSpace_Call {
	return &MockspaceIndexer_ReindexSpace_Call{Call: _e.mock.On("ReindexSpace", space)}
}

func (_c *MockspaceIndexer_ReindexSpace_Call) Run(run func(space clientspace.Space)) *MockspaceIndexer_ReindexSpace_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(clientspace.Space))
	})
	return _c
}

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

func (_c *MockspaceIndexer_ReindexSpace_Call) RunAndReturn(run func(clientspace.Space) error) *MockspaceIndexer_ReindexSpace_Call {
	_c.Call.Return(run)
	return _c
}

// RemoveIndexes provides a mock function with given fields: spaceID
func (_m *MockspaceIndexer) RemoveIndexes(spaceID string) error {
	ret := _m.Called(spaceID)

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

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

	return r0
}

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

// RemoveIndexes is a helper method to define mock.On call
//   - spaceID string
func (_e *MockspaceIndexer_Expecter) RemoveIndexes(spaceID interface{}) *MockspaceIndexer_RemoveIndexes_Call {
	return &MockspaceIndexer_RemoveIndexes_Call{Call: _e.mock.On("RemoveIndexes", spaceID)}
}

func (_c *MockspaceIndexer_RemoveIndexes_Call) Run(run func(spaceID string)) *MockspaceIndexer_RemoveIndexes_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(string))
	})
	return _c
}

func (_c *MockspaceIndexer_RemoveIndexes_Call) Return(err error) *MockspaceIndexer_RemoveIndexes_Call {
	_c.Call.Return(err)
	return _c
}

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

// NewMockspaceIndexer creates a new instance of MockspaceIndexer. 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 NewMockspaceIndexer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockspaceIndexer {
	mock := &MockspaceIndexer{}
	mock.Mock.Test(t)

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

	return mock
}
