// Code generated by mockery. DO NOT EDIT.

package mock_emailcollector

import (
	context "context"

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

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

	pb "github.com/anyproto/anytype-heart/pb"
)

// MockEmailCollector is an autogenerated mock type for the EmailCollector type
type MockEmailCollector struct {
	mock.Mock
}

type MockEmailCollector_Expecter struct {
	mock *mock.Mock
}

func (_m *MockEmailCollector) EXPECT() *MockEmailCollector_Expecter {
	return &MockEmailCollector_Expecter{mock: &_m.Mock}
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SendRequest provides a mock function with given fields: ctx, req
func (_m *MockEmailCollector) SendRequest(ctx context.Context, req *pb.RpcMembershipGetVerificationEmailRequest) (*pb.RpcMembershipGetVerificationEmailResponse, error) {
	ret := _m.Called(ctx, req)

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

	var r0 *pb.RpcMembershipGetVerificationEmailResponse
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *pb.RpcMembershipGetVerificationEmailRequest) (*pb.RpcMembershipGetVerificationEmailResponse, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *pb.RpcMembershipGetVerificationEmailRequest) *pb.RpcMembershipGetVerificationEmailResponse); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*pb.RpcMembershipGetVerificationEmailResponse)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *pb.RpcMembershipGetVerificationEmailRequest) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// SendRequest is a helper method to define mock.On call
//   - ctx context.Context
//   - req *pb.RpcMembershipGetVerificationEmailRequest
func (_e *MockEmailCollector_Expecter) SendRequest(ctx interface{}, req interface{}) *MockEmailCollector_SendRequest_Call {
	return &MockEmailCollector_SendRequest_Call{Call: _e.mock.On("SendRequest", ctx, req)}
}

func (_c *MockEmailCollector_SendRequest_Call) Run(run func(ctx context.Context, req *pb.RpcMembershipGetVerificationEmailRequest)) *MockEmailCollector_SendRequest_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*pb.RpcMembershipGetVerificationEmailRequest))
	})
	return _c
}

func (_c *MockEmailCollector_SendRequest_Call) Return(_a0 *pb.RpcMembershipGetVerificationEmailResponse, _a1 error) *MockEmailCollector_SendRequest_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockEmailCollector_SendRequest_Call) RunAndReturn(run func(context.Context, *pb.RpcMembershipGetVerificationEmailRequest) (*pb.RpcMembershipGetVerificationEmailResponse, error)) *MockEmailCollector_SendRequest_Call {
	_c.Call.Return(run)
	return _c
}

// SetRequest provides a mock function with given fields: req
func (_m *MockEmailCollector) SetRequest(req *pb.RpcMembershipGetVerificationEmailRequest) error {
	ret := _m.Called(req)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(*pb.RpcMembershipGetVerificationEmailRequest) error); ok {
		r0 = rf(req)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// SetRequest is a helper method to define mock.On call
//   - req *pb.RpcMembershipGetVerificationEmailRequest
func (_e *MockEmailCollector_Expecter) SetRequest(req interface{}) *MockEmailCollector_SetRequest_Call {
	return &MockEmailCollector_SetRequest_Call{Call: _e.mock.On("SetRequest", req)}
}

func (_c *MockEmailCollector_SetRequest_Call) Run(run func(req *pb.RpcMembershipGetVerificationEmailRequest)) *MockEmailCollector_SetRequest_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*pb.RpcMembershipGetVerificationEmailRequest))
	})
	return _c
}

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

func (_c *MockEmailCollector_SetRequest_Call) RunAndReturn(run func(*pb.RpcMembershipGetVerificationEmailRequest) error) *MockEmailCollector_SetRequest_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
