// Code generated by mockery. DO NOT EDIT.

package mock_kanban

import (
	app "github.com/anyproto/any-sync/app"
	kanban "github.com/anyproto/anytype-heart/core/kanban"
	mock "github.com/stretchr/testify/mock"
)

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

type MockService_Expecter struct {
	mock *mock.Mock
}

func (_m *MockService) EXPECT() *MockService_Expecter {
	return &MockService_Expecter{mock: &_m.Mock}
}

// Grouper provides a mock function with given fields: spaceID, key
func (_m *MockService) Grouper(spaceID string, key string) (kanban.Grouper, error) {
	ret := _m.Called(spaceID, key)

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

	var r0 kanban.Grouper
	var r1 error
	if rf, ok := ret.Get(0).(func(string, string) (kanban.Grouper, error)); ok {
		return rf(spaceID, key)
	}
	if rf, ok := ret.Get(0).(func(string, string) kanban.Grouper); ok {
		r0 = rf(spaceID, key)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(kanban.Grouper)
		}
	}

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

	return r0, r1
}

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

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

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

func (_c *MockService_Grouper_Call) Return(_a0 kanban.Grouper, _a1 error) *MockService_Grouper_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockService_Grouper_Call) RunAndReturn(run func(string, string) (kanban.Grouper, error)) *MockService_Grouper_Call {
	_c.Call.Return(run)
	return _c
}

// Init provides a mock function with given fields: a
func (_m *MockService) 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
}

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

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

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

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

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

// Name provides a mock function with given fields:
func (_m *MockService) 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
}

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

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

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

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

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

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

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

	return mock
}
