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

package service_helpers

import (
	service "github.com/kardianos/service"
	mock "github.com/stretchr/testify/mock"
)

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

type mockStopStarter_Expecter struct {
	mock *mock.Mock
}

func (_m *mockStopStarter) EXPECT() *mockStopStarter_Expecter {
	return &mockStopStarter_Expecter{mock: &_m.Mock}
}

// Start provides a mock function with given fields: _a0
func (_m *mockStopStarter) Start(_a0 service.Service) error {
	ret := _m.Called(_a0)

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

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

	return r0
}

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

// Start is a helper method to define mock.On call
//   - _a0 service.Service
func (_e *mockStopStarter_Expecter) Start(_a0 interface{}) *mockStopStarter_Start_Call {
	return &mockStopStarter_Start_Call{Call: _e.mock.On("Start", _a0)}
}

func (_c *mockStopStarter_Start_Call) Run(run func(_a0 service.Service)) *mockStopStarter_Start_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(service.Service))
	})
	return _c
}

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

func (_c *mockStopStarter_Start_Call) RunAndReturn(run func(service.Service) error) *mockStopStarter_Start_Call {
	_c.Call.Return(run)
	return _c
}

// Stop provides a mock function with given fields: _a0
func (_m *mockStopStarter) Stop(_a0 service.Service) error {
	ret := _m.Called(_a0)

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

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

	return r0
}

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

// Stop is a helper method to define mock.On call
//   - _a0 service.Service
func (_e *mockStopStarter_Expecter) Stop(_a0 interface{}) *mockStopStarter_Stop_Call {
	return &mockStopStarter_Stop_Call{Call: _e.mock.On("Stop", _a0)}
}

func (_c *mockStopStarter_Stop_Call) Run(run func(_a0 service.Service)) *mockStopStarter_Stop_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(service.Service))
	})
	return _c
}

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

func (_c *mockStopStarter_Stop_Call) RunAndReturn(run func(service.Service) error) *mockStopStarter_Stop_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
