// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	agglayertypes "github.com/agglayer/aggkit/agglayer/types"
	common "github.com/ethereum/go-ethereum/common"

	context "context"

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

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

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

type ValidatorClient_Expecter struct {
	mock *mock.Mock
}

func (_m *ValidatorClient) EXPECT() *ValidatorClient_Expecter {
	return &ValidatorClient_Expecter{mock: &_m.Mock}
}

// HealthCheck provides a mock function with given fields: ctx
func (_m *ValidatorClient) HealthCheck(ctx context.Context) (*types.HealthCheckResponse, error) {
	ret := _m.Called(ctx)

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

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

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

	return r0, r1
}

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

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

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

func (_c *ValidatorClient_HealthCheck_Call) Return(_a0 *types.HealthCheckResponse, _a1 error) *ValidatorClient_HealthCheck_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *ValidatorClient_HealthCheck_Call) RunAndReturn(run func(context.Context) (*types.HealthCheckResponse, error)) *ValidatorClient_HealthCheck_Call {
	_c.Call.Return(run)
	return _c
}

// ValidateCertificate provides a mock function with given fields: ctx, previousCertificateID, certificate, lastL2BlockInCert
func (_m *ValidatorClient) ValidateCertificate(ctx context.Context, previousCertificateID *common.Hash, certificate *agglayertypes.Certificate, lastL2BlockInCert uint64) ([]byte, error) {
	ret := _m.Called(ctx, previousCertificateID, certificate, lastL2BlockInCert)

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

	var r0 []byte
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *common.Hash, *agglayertypes.Certificate, uint64) ([]byte, error)); ok {
		return rf(ctx, previousCertificateID, certificate, lastL2BlockInCert)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *common.Hash, *agglayertypes.Certificate, uint64) []byte); ok {
		r0 = rf(ctx, previousCertificateID, certificate, lastL2BlockInCert)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]byte)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *common.Hash, *agglayertypes.Certificate, uint64) error); ok {
		r1 = rf(ctx, previousCertificateID, certificate, lastL2BlockInCert)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// ValidateCertificate is a helper method to define mock.On call
//   - ctx context.Context
//   - previousCertificateID *common.Hash
//   - certificate *agglayertypes.Certificate
//   - lastL2BlockInCert uint64
func (_e *ValidatorClient_Expecter) ValidateCertificate(ctx interface{}, previousCertificateID interface{}, certificate interface{}, lastL2BlockInCert interface{}) *ValidatorClient_ValidateCertificate_Call {
	return &ValidatorClient_ValidateCertificate_Call{Call: _e.mock.On("ValidateCertificate", ctx, previousCertificateID, certificate, lastL2BlockInCert)}
}

func (_c *ValidatorClient_ValidateCertificate_Call) Run(run func(ctx context.Context, previousCertificateID *common.Hash, certificate *agglayertypes.Certificate, lastL2BlockInCert uint64)) *ValidatorClient_ValidateCertificate_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*common.Hash), args[2].(*agglayertypes.Certificate), args[3].(uint64))
	})
	return _c
}

func (_c *ValidatorClient_ValidateCertificate_Call) Return(_a0 []byte, _a1 error) *ValidatorClient_ValidateCertificate_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *ValidatorClient_ValidateCertificate_Call) RunAndReturn(run func(context.Context, *common.Hash, *agglayertypes.Certificate, uint64) ([]byte, error)) *ValidatorClient_ValidateCertificate_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
