// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	context "context"

	common "github.com/ethereum/go-ethereum/common"

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

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

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

type AgglayerClientInterface_Expecter struct {
	mock *mock.Mock
}

func (_m *AgglayerClientInterface) EXPECT() *AgglayerClientInterface_Expecter {
	return &AgglayerClientInterface_Expecter{mock: &_m.Mock}
}

// GetCertificateHeader provides a mock function with given fields: ctx, certificateID
func (_m *AgglayerClientInterface) GetCertificateHeader(ctx context.Context, certificateID common.Hash) (*types.CertificateHeader, error) {
	ret := _m.Called(ctx, certificateID)

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

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

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

	return r0, r1
}

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

// GetCertificateHeader is a helper method to define mock.On call
//   - ctx context.Context
//   - certificateID common.Hash
func (_e *AgglayerClientInterface_Expecter) GetCertificateHeader(ctx interface{}, certificateID interface{}) *AgglayerClientInterface_GetCertificateHeader_Call {
	return &AgglayerClientInterface_GetCertificateHeader_Call{Call: _e.mock.On("GetCertificateHeader", ctx, certificateID)}
}

func (_c *AgglayerClientInterface_GetCertificateHeader_Call) Run(run func(ctx context.Context, certificateID common.Hash)) *AgglayerClientInterface_GetCertificateHeader_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(common.Hash))
	})
	return _c
}

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

func (_c *AgglayerClientInterface_GetCertificateHeader_Call) RunAndReturn(run func(context.Context, common.Hash) (*types.CertificateHeader, error)) *AgglayerClientInterface_GetCertificateHeader_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
