mocks

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateDB

type StateDB struct {
	mock.Mock
}

StateDB is an autogenerated mock type for the StateDB type

func NewStateDB

func NewStateDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateDB

NewStateDB creates a new instance of StateDB. 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 (*StateDB) AccessEvents

func (_m *StateDB) AccessEvents() *state.AccessEvents

AccessEvents provides a mock function with no fields

func (*StateDB) AddAddressToAccessList

func (_m *StateDB) AddAddressToAccessList(addr common.Address)

AddAddressToAccessList provides a mock function with given fields: addr

func (*StateDB) AddBalance

func (_m *StateDB) AddBalance(_a0 common.Address, _a1 *uint256.Int, _a2 tracing.BalanceChangeReason) uint256.Int

AddBalance provides a mock function with given fields: _a0, _a1, _a2

func (*StateDB) AddLog

func (_m *StateDB) AddLog(_a0 *types.Log)

AddLog provides a mock function with given fields: _a0

func (*StateDB) AddPreimage

func (_m *StateDB) AddPreimage(_a0 common.Hash, _a1 []byte)

AddPreimage provides a mock function with given fields: _a0, _a1

func (*StateDB) AddRefund

func (_m *StateDB) AddRefund(_a0 uint64)

AddRefund provides a mock function with given fields: _a0

func (*StateDB) AddSlotToAccessList

func (_m *StateDB) AddSlotToAccessList(addr common.Address, slot common.Hash)

AddSlotToAccessList provides a mock function with given fields: addr, slot

func (*StateDB) AddressInAccessList

func (_m *StateDB) AddressInAccessList(addr common.Address) bool

AddressInAccessList provides a mock function with given fields: addr

func (*StateDB) CreateAccount

func (_m *StateDB) CreateAccount(_a0 common.Address)

CreateAccount provides a mock function with given fields: _a0

func (*StateDB) CreateContract

func (_m *StateDB) CreateContract(_a0 common.Address)

CreateContract provides a mock function with given fields: _a0

func (*StateDB) Empty

func (_m *StateDB) Empty(_a0 common.Address) bool

Empty provides a mock function with given fields: _a0

func (*StateDB) Exist

func (_m *StateDB) Exist(_a0 common.Address) bool

Exist provides a mock function with given fields: _a0

func (*StateDB) Finalise

func (_m *StateDB) Finalise(_a0 bool)

Finalise provides a mock function with given fields: _a0

func (*StateDB) GetBalance

func (_m *StateDB) GetBalance(_a0 common.Address) *uint256.Int

GetBalance provides a mock function with given fields: _a0

func (*StateDB) GetCode

func (_m *StateDB) GetCode(_a0 common.Address) []byte

GetCode provides a mock function with given fields: _a0

func (*StateDB) GetCodeHash

func (_m *StateDB) GetCodeHash(_a0 common.Address) common.Hash

GetCodeHash provides a mock function with given fields: _a0

func (*StateDB) GetCodeSize

func (_m *StateDB) GetCodeSize(_a0 common.Address) int

GetCodeSize provides a mock function with given fields: _a0

func (*StateDB) GetNonce

func (_m *StateDB) GetNonce(_a0 common.Address) uint64

GetNonce provides a mock function with given fields: _a0

func (*StateDB) GetRefund

func (_m *StateDB) GetRefund() uint64

GetRefund provides a mock function with no fields

func (*StateDB) GetState

func (_m *StateDB) GetState(_a0 common.Address, _a1 common.Hash) common.Hash

GetState provides a mock function with given fields: _a0, _a1

func (*StateDB) GetStateAndCommittedState

func (_m *StateDB) GetStateAndCommittedState(_a0 common.Address, _a1 common.Hash) (common.Hash, common.Hash)

GetStateAndCommittedState provides a mock function with given fields: _a0, _a1

func (*StateDB) GetStorageRoot

func (_m *StateDB) GetStorageRoot(addr common.Address) common.Hash

GetStorageRoot provides a mock function with given fields: addr

func (*StateDB) GetTransientState

func (_m *StateDB) GetTransientState(addr common.Address, key common.Hash) common.Hash

GetTransientState provides a mock function with given fields: addr, key

func (*StateDB) HasSelfDestructed

func (_m *StateDB) HasSelfDestructed(_a0 common.Address) bool

HasSelfDestructed provides a mock function with given fields: _a0

func (*StateDB) IsStorageEmpty

func (_m *StateDB) IsStorageEmpty(addr common.Address) bool

IsStorageEmpty provides a mock function with given fields: addr

func (*StateDB) PointCache

func (_m *StateDB) PointCache() *utils.PointCache

PointCache provides a mock function with no fields

func (*StateDB) Prepare

func (_m *StateDB) Prepare(rules params.Rules, sender common.Address, coinbase common.Address, dest *common.Address, precompiles []common.Address, txAccesses types.AccessList)

Prepare provides a mock function with given fields: rules, sender, coinbase, dest, precompiles, txAccesses

func (*StateDB) RevertToSnapshot

func (_m *StateDB) RevertToSnapshot(_a0 int)

RevertToSnapshot provides a mock function with given fields: _a0

func (*StateDB) SelfDestruct

func (_m *StateDB) SelfDestruct(_a0 common.Address) uint256.Int

SelfDestruct provides a mock function with given fields: _a0

func (*StateDB) SelfDestruct6780

func (_m *StateDB) SelfDestruct6780(_a0 common.Address) (uint256.Int, bool)

SelfDestruct6780 provides a mock function with given fields: _a0

func (*StateDB) SetCode

func (_m *StateDB) SetCode(_a0 common.Address, _a1 []byte) []byte

SetCode provides a mock function with given fields: _a0, _a1

func (*StateDB) SetNonce

func (_m *StateDB) SetNonce(_a0 common.Address, _a1 uint64, _a2 tracing.NonceChangeReason)

SetNonce provides a mock function with given fields: _a0, _a1, _a2

func (*StateDB) SetState

func (_m *StateDB) SetState(_a0 common.Address, _a1 common.Hash, _a2 common.Hash) common.Hash

SetState provides a mock function with given fields: _a0, _a1, _a2

func (*StateDB) SetTransientState

func (_m *StateDB) SetTransientState(addr common.Address, key common.Hash, value common.Hash)

SetTransientState provides a mock function with given fields: addr, key, value

func (*StateDB) SlotInAccessList

func (_m *StateDB) SlotInAccessList(addr common.Address, slot common.Hash) (bool, bool)

SlotInAccessList provides a mock function with given fields: addr, slot

func (*StateDB) Snapshot

func (_m *StateDB) Snapshot() int

Snapshot provides a mock function with no fields

func (*StateDB) SubBalance

func (_m *StateDB) SubBalance(_a0 common.Address, _a1 *uint256.Int, _a2 tracing.BalanceChangeReason) uint256.Int

SubBalance provides a mock function with given fields: _a0, _a1, _a2

func (*StateDB) SubRefund

func (_m *StateDB) SubRefund(_a0 uint64)

SubRefund provides a mock function with given fields: _a0

func (*StateDB) Witness

func (_m *StateDB) Witness() *stateless.Witness

Witness provides a mock function with no fields

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL