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

package mocks

import (
	block "github.com/berachain/beacon-kit/storage/block"

	context "context"

	deposit "github.com/berachain/beacon-kit/storage/deposit"

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

	state "github.com/berachain/beacon-kit/state-transition/core/state"

	store "github.com/berachain/beacon-kit/da/store"

	types "github.com/berachain/beacon-kit/consensus-types/types"
)

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

type StorageBackend_Expecter struct {
	mock *mock.Mock
}

func (_m *StorageBackend) EXPECT() *StorageBackend_Expecter {
	return &StorageBackend_Expecter{mock: &_m.Mock}
}

// AvailabilityStore provides a mock function with no fields
func (_m *StorageBackend) AvailabilityStore() *store.Store {
	ret := _m.Called()

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

	var r0 *store.Store
	if rf, ok := ret.Get(0).(func() *store.Store); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*store.Store)
		}
	}

	return r0
}

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

// AvailabilityStore is a helper method to define mock.On call
func (_e *StorageBackend_Expecter) AvailabilityStore() *StorageBackend_AvailabilityStore_Call {
	return &StorageBackend_AvailabilityStore_Call{Call: _e.mock.On("AvailabilityStore")}
}

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

func (_c *StorageBackend_AvailabilityStore_Call) Return(_a0 *store.Store) *StorageBackend_AvailabilityStore_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *StorageBackend_AvailabilityStore_Call) RunAndReturn(run func() *store.Store) *StorageBackend_AvailabilityStore_Call {
	_c.Call.Return(run)
	return _c
}

// BlockStore provides a mock function with no fields
func (_m *StorageBackend) BlockStore() *block.KVStore[*types.BeaconBlock] {
	ret := _m.Called()

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

	var r0 *block.KVStore[*types.BeaconBlock]
	if rf, ok := ret.Get(0).(func() *block.KVStore[*types.BeaconBlock]); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*block.KVStore[*types.BeaconBlock])
		}
	}

	return r0
}

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

// BlockStore is a helper method to define mock.On call
func (_e *StorageBackend_Expecter) BlockStore() *StorageBackend_BlockStore_Call {
	return &StorageBackend_BlockStore_Call{Call: _e.mock.On("BlockStore")}
}

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

func (_c *StorageBackend_BlockStore_Call) Return(_a0 *block.KVStore[*types.BeaconBlock]) *StorageBackend_BlockStore_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *StorageBackend_BlockStore_Call) RunAndReturn(run func() *block.KVStore[*types.BeaconBlock]) *StorageBackend_BlockStore_Call {
	_c.Call.Return(run)
	return _c
}

// DepositStore provides a mock function with no fields
func (_m *StorageBackend) DepositStore() deposit.StoreManager {
	ret := _m.Called()

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

	var r0 deposit.StoreManager
	if rf, ok := ret.Get(0).(func() deposit.StoreManager); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(deposit.StoreManager)
		}
	}

	return r0
}

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

// DepositStore is a helper method to define mock.On call
func (_e *StorageBackend_Expecter) DepositStore() *StorageBackend_DepositStore_Call {
	return &StorageBackend_DepositStore_Call{Call: _e.mock.On("DepositStore")}
}

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

func (_c *StorageBackend_DepositStore_Call) Return(_a0 deposit.StoreManager) *StorageBackend_DepositStore_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *StorageBackend_DepositStore_Call) RunAndReturn(run func() deposit.StoreManager) *StorageBackend_DepositStore_Call {
	_c.Call.Return(run)
	return _c
}

// StateFromContext provides a mock function with given fields: _a0
func (_m *StorageBackend) StateFromContext(_a0 context.Context) *state.StateDB {
	ret := _m.Called(_a0)

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

	var r0 *state.StateDB
	if rf, ok := ret.Get(0).(func(context.Context) *state.StateDB); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*state.StateDB)
		}
	}

	return r0
}

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

// StateFromContext is a helper method to define mock.On call
//   - _a0 context.Context
func (_e *StorageBackend_Expecter) StateFromContext(_a0 interface{}) *StorageBackend_StateFromContext_Call {
	return &StorageBackend_StateFromContext_Call{Call: _e.mock.On("StateFromContext", _a0)}
}

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

func (_c *StorageBackend_StateFromContext_Call) Return(_a0 *state.StateDB) *StorageBackend_StateFromContext_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *StorageBackend_StateFromContext_Call) RunAndReturn(run func(context.Context) *state.StateDB) *StorageBackend_StateFromContext_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
