// Code generated by mockery. DO NOT EDIT.

package mock_syncinterfaces

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

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

type EthermanGetLatestBatchNumber_Expecter struct {
	mock *mock.Mock
}

func (_m *EthermanGetLatestBatchNumber) EXPECT() *EthermanGetLatestBatchNumber_Expecter {
	return &EthermanGetLatestBatchNumber_Expecter{mock: &_m.Mock}
}

// GetLatestBatchNumber provides a mock function with given fields:
func (_m *EthermanGetLatestBatchNumber) GetLatestBatchNumber() (uint64, error) {
	ret := _m.Called()

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

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

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

	return r0, r1
}

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

// GetLatestBatchNumber is a helper method to define mock.On call
func (_e *EthermanGetLatestBatchNumber_Expecter) GetLatestBatchNumber() *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call {
	return &EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call{Call: _e.mock.On("GetLatestBatchNumber")}
}

func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Run(run func()) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call) Return(_a0 uint64, _a1 error) *EthermanGetLatestBatchNumber_GetLatestBatchNumber_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

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

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

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

	return mock
}
