// Code generated by mockery v2.46.0. DO NOT EDIT.

package mocks

import (
	context "context"

	eth "github.com/ethereum-optimism/optimism/op-service/eth"
	mock "github.com/stretchr/testify/mock"
)

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

type BlobSideCarsFetcher_Expecter struct {
	mock *mock.Mock
}

func (_m *BlobSideCarsFetcher) EXPECT() *BlobSideCarsFetcher_Expecter {
	return &BlobSideCarsFetcher_Expecter{mock: &_m.Mock}
}

// BeaconBlobSideCars provides a mock function with given fields: ctx, fetchAllSidecars, slot, hashes
func (_m *BlobSideCarsFetcher) BeaconBlobSideCars(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error) {
	ret := _m.Called(ctx, fetchAllSidecars, slot, hashes)

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

	var r0 eth.APIGetBlobSidecarsResponse
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, bool, uint64, []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)); ok {
		return rf(ctx, fetchAllSidecars, slot, hashes)
	}
	if rf, ok := ret.Get(0).(func(context.Context, bool, uint64, []eth.IndexedBlobHash) eth.APIGetBlobSidecarsResponse); ok {
		r0 = rf(ctx, fetchAllSidecars, slot, hashes)
	} else {
		r0 = ret.Get(0).(eth.APIGetBlobSidecarsResponse)
	}

	if rf, ok := ret.Get(1).(func(context.Context, bool, uint64, []eth.IndexedBlobHash) error); ok {
		r1 = rf(ctx, fetchAllSidecars, slot, hashes)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// BeaconBlobSideCars is a helper method to define mock.On call
//   - ctx context.Context
//   - fetchAllSidecars bool
//   - slot uint64
//   - hashes []eth.IndexedBlobHash
func (_e *BlobSideCarsFetcher_Expecter) BeaconBlobSideCars(ctx interface{}, fetchAllSidecars interface{}, slot interface{}, hashes interface{}) *BlobSideCarsFetcher_BeaconBlobSideCars_Call {
	return &BlobSideCarsFetcher_BeaconBlobSideCars_Call{Call: _e.mock.On("BeaconBlobSideCars", ctx, fetchAllSidecars, slot, hashes)}
}

func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) Run(run func(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash)) *BlobSideCarsFetcher_BeaconBlobSideCars_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(bool), args[2].(uint64), args[3].([]eth.IndexedBlobHash))
	})
	return _c
}

func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) Return(_a0 eth.APIGetBlobSidecarsResponse, _a1 error) *BlobSideCarsFetcher_BeaconBlobSideCars_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) RunAndReturn(run func(context.Context, bool, uint64, []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)) *BlobSideCarsFetcher_BeaconBlobSideCars_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
