Skip to main content

Crate foundry_evm_coverage

Crate foundry_evm_coverage 

Source
Expand description

Β§foundry-evm-coverage

EVM bytecode coverage analysis.

Re-exportsΒ§

pub(crate) use alloy_primitives::Bytes; πŸ”’
pub(crate) use alloy_primitives::map::HashMap; πŸ”’
pub(crate) use alloy_primitives::map::rustc_hash::FxHashMap; πŸ”’
pub(crate) use alloy_primitives::map::rustc_hash::FxHashSet; πŸ”’
pub(crate) use analysis::SourceAnalysis; πŸ”’
pub(crate) use Bytes; πŸ”’
pub(crate) use HashMap; πŸ”’
pub(crate) use FxHashMap; πŸ”’
pub(crate) use FxHashSet; πŸ”’
pub(crate) use eyre::Result; πŸ”’
pub(crate) use foundry_compilers::artifacts::sourcemap::SourceMap; πŸ”’
pub(crate) use semver::Version; πŸ”’
pub(crate) use collections::BTreeMap; πŸ”’
pub(crate) use fmt; πŸ”’
pub(crate) use num::NonZeroU32; πŸ”’
pub(crate) use Deref; πŸ”’
pub(crate) use DerefMut; πŸ”’
pub(crate) use Range; πŸ”’
pub(crate) use Path; πŸ”’
pub(crate) use PathBuf; πŸ”’
pub(crate) use sync::Arc; πŸ”’

ModulesΒ§

analysis
anchors
edge πŸ”’
inspector πŸ”’

StructsΒ§

CallHits πŸ”’
CmpOperands
A comparison operand pair captured during execution.
ContractExecutionAnchors πŸ”’
ContractId
A unique identifier for a contract.
CoverageItem
CoverageItemKey πŸ”’
CoverageReport
A coverage report.
CoverageSummary
Coverage summary for a source file.
EdgeCovConfig
Configuration for EdgeCovInspector.
EdgeCovHit
EdgeCovInspector
An Inspector that tracks edge coverage. Covered edges will not wrap to zero e.g. a loop edge hit more than 255 will still be retained.
EdgeIndexMap
EdgeKey
Identity of a control-flow edge: the jump at pc in the code running at address to jump_dest, optionally split by call depth.
ExecutionAnchor
An execution-based anchor for a coverage item without source-mapped bytecode.
HitMap
Hit data for an address.
HitMaps
A collection of HitMaps.
ItemAnchor
An item anchor describes what instruction marks a CoverageItem as covered.
ItemAnchors
Item anchors for one contract’s creation or runtime bytecode.
LineCoverageCollector
Inspector implementation for collecting coverage information.
RevertGuard πŸ”’
The source condition and payload of a direct, argument-free custom-error revert.
SourceLocation
A source location.

EnumsΒ§

CallData πŸ”’
CoverageItemKind
CoverageItemKindKey πŸ”’
EdgeCovKind
Edge coverage collection kind.
EdgeCoverage
ExecutionAnchorKind
The execution path associated with an execution-based anchor.

ConstantsΒ§

MAX_EDGE_COUNT
Default capacity for the hitcount buffer.