// Code generated by mockery. DO NOT EDIT.

package mock_syncinterfaces

import (
	context "context"
	big "math/big"

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

	types "github.com/0xPolygonHermez/zkevm-node/jsonrpc/types"
)

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

type ZKEVMClientTrustedBatchesGetter_Expecter struct {
	mock *mock.Mock
}

func (_m *ZKEVMClientTrustedBatchesGetter) EXPECT() *ZKEVMClientTrustedBatchesGetter_Expecter {
	return &ZKEVMClientTrustedBatchesGetter_Expecter{mock: &_m.Mock}
}

// BatchByNumber provides a mock function with given fields: ctx, number
func (_m *ZKEVMClientTrustedBatchesGetter) BatchByNumber(ctx context.Context, number *big.Int) (*types.Batch, error) {
	ret := _m.Called(ctx, number)

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

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

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

	return r0, r1
}

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

// BatchByNumber is a helper method to define mock.On call
//   - ctx context.Context
//   - number *big.Int
func (_e *ZKEVMClientTrustedBatchesGetter_Expecter) BatchByNumber(ctx interface{}, number interface{}) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call {
	return &ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call{Call: _e.mock.On("BatchByNumber", ctx, number)}
}

func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(*big.Int))
	})
	return _c
}

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

func (_c *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Batch, error)) *ZKEVMClientTrustedBatchesGetter_BatchByNumber_Call {
	_c.Call.Return(run)
	return _c
}

// BatchNumber provides a mock function with given fields: ctx
func (_m *ZKEVMClientTrustedBatchesGetter) BatchNumber(ctx context.Context) (uint64, error) {
	ret := _m.Called(ctx)

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

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

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

	return r0, r1
}

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

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

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

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

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

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

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

	return mock
}
