// Code generated by mockery. DO NOT EDIT.

package mocks

import (
	common "github.com/ethereum/go-ethereum/common"
	mock "github.com/stretchr/testify/mock"
)

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

type OpNodeClienter_Expecter struct {
	mock *mock.Mock
}

func (_m *OpNodeClienter) EXPECT() *OpNodeClienter_Expecter {
	return &OpNodeClienter_Expecter{mock: &_m.Mock}
}

// OutputAtBlockRoot provides a mock function with given fields: blockNum
func (_m *OpNodeClienter) OutputAtBlockRoot(blockNum uint64) (common.Hash, error) {
	ret := _m.Called(blockNum)

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

	var r0 common.Hash
	var r1 error
	if rf, ok := ret.Get(0).(func(uint64) (common.Hash, error)); ok {
		return rf(blockNum)
	}
	if rf, ok := ret.Get(0).(func(uint64) common.Hash); ok {
		r0 = rf(blockNum)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(common.Hash)
		}
	}

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

	return r0, r1
}

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

// OutputAtBlockRoot is a helper method to define mock.On call
//   - blockNum uint64
func (_e *OpNodeClienter_Expecter) OutputAtBlockRoot(blockNum interface{}) *OpNodeClienter_OutputAtBlockRoot_Call {
	return &OpNodeClienter_OutputAtBlockRoot_Call{Call: _e.mock.On("OutputAtBlockRoot", blockNum)}
}

func (_c *OpNodeClienter_OutputAtBlockRoot_Call) Run(run func(blockNum uint64)) *OpNodeClienter_OutputAtBlockRoot_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(uint64))
	})
	return _c
}

func (_c *OpNodeClienter_OutputAtBlockRoot_Call) Return(_a0 common.Hash, _a1 error) *OpNodeClienter_OutputAtBlockRoot_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *OpNodeClienter_OutputAtBlockRoot_Call) RunAndReturn(run func(uint64) (common.Hash, error)) *OpNodeClienter_OutputAtBlockRoot_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
