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

package mock_space

import (
	context "context"

	app "github.com/anyproto/any-sync/app"

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

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

type MockVirtualSpaceService_Expecter struct {
	mock *mock.Mock
}

func (_m *MockVirtualSpaceService) EXPECT() *MockVirtualSpaceService_Expecter {
	return &MockVirtualSpaceService_Expecter{mock: &_m.Mock}
}

// Close provides a mock function with given fields: ctx
func (_m *MockVirtualSpaceService) Close(ctx context.Context) error {
	ret := _m.Called(ctx)

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

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

	return r0
}

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

// Close is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockVirtualSpaceService_Expecter) Close(ctx interface{}) *MockVirtualSpaceService_Close_Call {
	return &MockVirtualSpaceService_Close_Call{Call: _e.mock.On("Close", ctx)}
}

func (_c *MockVirtualSpaceService_Close_Call) Run(run func(ctx context.Context)) *MockVirtualSpaceService_Close_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

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

func (_c *MockVirtualSpaceService_Close_Call) RunAndReturn(run func(context.Context) error) *MockVirtualSpaceService_Close_Call {
	_c.Call.Return(run)
	return _c
}

// Init provides a mock function with given fields: a
func (_m *MockVirtualSpaceService) Init(a *app.App) error {
	ret := _m.Called(a)

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

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

	return r0
}

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

// Init is a helper method to define mock.On call
//   - a *app.App
func (_e *MockVirtualSpaceService_Expecter) Init(a interface{}) *MockVirtualSpaceService_Init_Call {
	return &MockVirtualSpaceService_Init_Call{Call: _e.mock.On("Init", a)}
}

func (_c *MockVirtualSpaceService_Init_Call) Run(run func(a *app.App)) *MockVirtualSpaceService_Init_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*app.App))
	})
	return _c
}

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

func (_c *MockVirtualSpaceService_Init_Call) RunAndReturn(run func(*app.App) error) *MockVirtualSpaceService_Init_Call {
	_c.Call.Return(run)
	return _c
}

// Name provides a mock function with given fields:
func (_m *MockVirtualSpaceService) Name() string {
	ret := _m.Called()

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

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

	return r0
}

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

// Name is a helper method to define mock.On call
func (_e *MockVirtualSpaceService_Expecter) Name() *MockVirtualSpaceService_Name_Call {
	return &MockVirtualSpaceService_Name_Call{Call: _e.mock.On("Name")}
}

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

func (_c *MockVirtualSpaceService_Name_Call) Return(name string) *MockVirtualSpaceService_Name_Call {
	_c.Call.Return(name)
	return _c
}

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

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

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

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

	return r0
}

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

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

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

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

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

// Run provides a mock function with given fields: ctx
func (_m *MockVirtualSpaceService) Run(ctx context.Context) error {
	ret := _m.Called(ctx)

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

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

	return r0
}

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

// Run is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockVirtualSpaceService_Expecter) Run(ctx interface{}) *MockVirtualSpaceService_Run_Call {
	return &MockVirtualSpaceService_Run_Call{Call: _e.mock.On("Run", ctx)}
}

func (_c *MockVirtualSpaceService_Run_Call) Run(run func(ctx context.Context)) *MockVirtualSpaceService_Run_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

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

func (_c *MockVirtualSpaceService_Run_Call) RunAndReturn(run func(context.Context) error) *MockVirtualSpaceService_Run_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
