// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	context "context"

	agglayertypes "github.com/agglayer/aggkit/agglayer/types"

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

	types "github.com/agglayer/aggkit/aggsender/types"
)

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

type ValidatorPoller_Expecter struct {
	mock *mock.Mock
}

func (_m *ValidatorPoller) EXPECT() *ValidatorPoller_Expecter {
	return &ValidatorPoller_Expecter{mock: &_m.Mock}
}

// PollValidators provides a mock function with given fields: ctx, req
func (_m *ValidatorPoller) PollValidators(ctx context.Context, req *types.ValidationRequest) (*agglayertypes.Multisig, error) {
	ret := _m.Called(ctx, req)

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

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

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

	return r0, r1
}

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

// PollValidators is a helper method to define mock.On call
//   - ctx context.Context
//   - req *types.ValidationRequest
func (_e *ValidatorPoller_Expecter) PollValidators(ctx interface{}, req interface{}) *ValidatorPoller_PollValidators_Call {
	return &ValidatorPoller_PollValidators_Call{Call: _e.mock.On("PollValidators", ctx, req)}
}

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

func (_c *ValidatorPoller_PollValidators_Call) Return(_a0 *agglayertypes.Multisig, _a1 error) *ValidatorPoller_PollValidators_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *ValidatorPoller_PollValidators_Call) RunAndReturn(run func(context.Context, *types.ValidationRequest) (*agglayertypes.Multisig, error)) *ValidatorPoller_PollValidators_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
