// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	context "context"

	types "github.com/agglayer/aggkit/aggsender/types"
	mock "github.com/stretchr/testify/mock"
)

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

type CertificateValidator_Expecter struct {
	mock *mock.Mock
}

func (_m *CertificateValidator) EXPECT() *CertificateValidator_Expecter {
	return &CertificateValidator_Expecter{mock: &_m.Mock}
}

// ValidateCertificate provides a mock function with given fields: ctx, params
func (_m *CertificateValidator) ValidateCertificate(ctx context.Context, params types.VerifyIncomingRequest) error {
	ret := _m.Called(ctx, params)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, types.VerifyIncomingRequest) error); ok {
		r0 = rf(ctx, params)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// ValidateCertificate is a helper method to define mock.On call
//   - ctx context.Context
//   - params types.VerifyIncomingRequest
func (_e *CertificateValidator_Expecter) ValidateCertificate(ctx interface{}, params interface{}) *CertificateValidator_ValidateCertificate_Call {
	return &CertificateValidator_ValidateCertificate_Call{Call: _e.mock.On("ValidateCertificate", ctx, params)}
}

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

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

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

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

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

	return mock
}
