Skip to main content

Crate coverage

Crate coverage 

Source
Expand description

§foundry-evm-coverage

EVM bytecode coverage analysis.

Modules§

analysis
anchors

Structs§

CmpOperands
A comparison operand pair captured during execution.
ContractId
A unique identifier for a contract.
CoverageItem
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.
SourceLocation
A source location.

Enums§

CoverageItemKind
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.