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Β§
StructsΒ§
- Call
Hits π - Contract
Execution πAnchors - Contract
Id - A unique identifier for a contract.
- Coverage
Item - Coverage
Item πKey - Coverage
Report - A coverage report.
- Coverage
Summary - Coverage summary for a source file.
- Execution
Anchor - An execution-based anchor for a coverage item without source-mapped bytecode.
- HitMap
- Hit data for an address.
- HitMaps
- A collection of
HitMaps. - Item
Anchor - An item anchor describes what instruction marks a CoverageItem as covered.
- Item
Anchors - Item anchors for one contractβs creation or runtime bytecode.
- Line
Coverage Collector - Inspector implementation for collecting coverage information.
- Source
Location - A source location.
EnumsΒ§
- Call
Data π - Coverage
Item Kind - Coverage
Item πKind Key - Execution
Anchor Kind - The execution path associated with an execution-based anchor.