// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package mocks

import (
	"net/url"
	"text/template"

	"github.com/nicholas-fedor/shoutrrr/pkg/types"
	mock "github.com/stretchr/testify/mock"
)

// 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
}

// 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}
}

// GetID provides a mock function for the type MockService
func (_mock *MockService) GetID() string {
	ret := _mock.Called()

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

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

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

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

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

func (_c *MockService_GetID_Call) Return(s string) *MockService_GetID_Call {
	_c.Call.Return(s)
	return _c
}

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

// GetTemplate provides a mock function for the type MockService
func (_mock *MockService) GetTemplate(id string) (*template.Template, bool) {
	ret := _mock.Called(id)

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

	var r0 *template.Template
	var r1 bool
	if returnFunc, ok := ret.Get(0).(func(string) (*template.Template, bool)); ok {
		return returnFunc(id)
	}
	if returnFunc, ok := ret.Get(0).(func(string) *template.Template); ok {
		r0 = returnFunc(id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*template.Template)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(string) bool); ok {
		r1 = returnFunc(id)
	} else {
		r1 = ret.Get(1).(bool)
	}
	return r0, r1
}

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

// GetTemplate is a helper method to define mock.On call
//   - id string
func (_e *MockService_Expecter) GetTemplate(id any) *MockService_GetTemplate_Call {
	return &MockService_GetTemplate_Call{Call: _e.mock.On("GetTemplate", id)}
}

func (_c *MockService_GetTemplate_Call) Run(run func(id string)) *MockService_GetTemplate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *MockService_GetTemplate_Call) Return(template1 *template.Template, found bool) *MockService_GetTemplate_Call {
	_c.Call.Return(template1, found)
	return _c
}

func (_c *MockService_GetTemplate_Call) RunAndReturn(run func(id string) (*template.Template, bool)) *MockService_GetTemplate_Call {
	_c.Call.Return(run)
	return _c
}

// Initialize provides a mock function for the type MockService
func (_mock *MockService) Initialize(serviceURL *url.URL, logger types.StdLogger) error {
	ret := _mock.Called(serviceURL, logger)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(*url.URL, types.StdLogger) error); ok {
		r0 = returnFunc(serviceURL, logger)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Initialize is a helper method to define mock.On call
//   - serviceURL *url.URL
//   - logger types.StdLogger
func (_e *MockService_Expecter) Initialize(serviceURL any, logger any) *MockService_Initialize_Call {
	return &MockService_Initialize_Call{Call: _e.mock.On("Initialize", serviceURL, logger)}
}

func (_c *MockService_Initialize_Call) Run(run func(serviceURL *url.URL, logger types.StdLogger)) *MockService_Initialize_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 *url.URL
		if args[0] != nil {
			arg0 = args[0].(*url.URL)
		}
		var arg1 types.StdLogger
		if args[1] != nil {
			arg1 = args[1].(types.StdLogger)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

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

func (_c *MockService_Initialize_Call) RunAndReturn(run func(serviceURL *url.URL, logger types.StdLogger) error) *MockService_Initialize_Call {
	_c.Call.Return(run)
	return _c
}

// Send provides a mock function for the type MockService
func (_mock *MockService) Send(message string, params *types.Params) error {
	ret := _mock.Called(message, params)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(string, *types.Params) error); ok {
		r0 = returnFunc(message, params)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// Send is a helper method to define mock.On call
//   - message string
//   - params *types.Params
func (_e *MockService_Expecter) Send(message any, params any) *MockService_Send_Call {
	return &MockService_Send_Call{Call: _e.mock.On("Send", message, params)}
}

func (_c *MockService_Send_Call) Run(run func(message string, params *types.Params)) *MockService_Send_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		var arg1 *types.Params
		if args[1] != nil {
			arg1 = args[1].(*types.Params)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

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

func (_c *MockService_Send_Call) RunAndReturn(run func(message string, params *types.Params) error) *MockService_Send_Call {
	_c.Call.Return(run)
	return _c
}

// SetLogger provides a mock function for the type MockService
func (_mock *MockService) SetLogger(logger types.StdLogger) {
	_mock.Called(logger)
	return
}

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

// SetLogger is a helper method to define mock.On call
//   - logger types.StdLogger
func (_e *MockService_Expecter) SetLogger(logger any) *MockService_SetLogger_Call {
	return &MockService_SetLogger_Call{Call: _e.mock.On("SetLogger", logger)}
}

func (_c *MockService_SetLogger_Call) Run(run func(logger types.StdLogger)) *MockService_SetLogger_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 types.StdLogger
		if args[0] != nil {
			arg0 = args[0].(types.StdLogger)
		}
		run(
			arg0,
		)
	})
	return _c
}

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

func (_c *MockService_SetLogger_Call) RunAndReturn(run func(logger types.StdLogger)) *MockService_SetLogger_Call {
	_c.Run(run)
	return _c
}

// SetTemplateFile provides a mock function for the type MockService
func (_mock *MockService) SetTemplateFile(id string, file string) error {
	ret := _mock.Called(id, file)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = returnFunc(id, file)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// SetTemplateFile is a helper method to define mock.On call
//   - id string
//   - file string
func (_e *MockService_Expecter) SetTemplateFile(id any, file any) *MockService_SetTemplateFile_Call {
	return &MockService_SetTemplateFile_Call{Call: _e.mock.On("SetTemplateFile", id, file)}
}

func (_c *MockService_SetTemplateFile_Call) Run(run func(id string, file string)) *MockService_SetTemplateFile_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

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

func (_c *MockService_SetTemplateFile_Call) RunAndReturn(run func(id string, file string) error) *MockService_SetTemplateFile_Call {
	_c.Call.Return(run)
	return _c
}

// SetTemplateString provides a mock function for the type MockService
func (_mock *MockService) SetTemplateString(id string, body string) error {
	ret := _mock.Called(id, body)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
		r0 = returnFunc(id, body)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// SetTemplateString is a helper method to define mock.On call
//   - id string
//   - body string
func (_e *MockService_Expecter) SetTemplateString(id any, body any) *MockService_SetTemplateString_Call {
	return &MockService_SetTemplateString_Call{Call: _e.mock.On("SetTemplateString", id, body)}
}

func (_c *MockService_SetTemplateString_Call) Run(run func(id string, body string)) *MockService_SetTemplateString_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

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

func (_c *MockService_SetTemplateString_Call) RunAndReturn(run func(id string, body string) error) *MockService_SetTemplateString_Call {
	_c.Call.Return(run)
	return _c
}
