Expand description
§foundry-evm-coverage
EVM bytecode coverage analysis.
Modules§
Structs§
- CmpOperands
- A comparison operand pair captured during execution.
- Contract
Id - A unique identifier for a contract.
- Coverage
Item - Coverage
Report - A coverage report.
- Coverage
Summary - Coverage summary for a source file.
- Edge
CovConfig - Configuration for
EdgeCovInspector. - Edge
CovHit - Edge
CovInspector - An
Inspectorthat tracks edge coverage. Covered edges will not wrap to zero e.g. a loop edge hit more than 255 will still be retained. - Edge
Index Map - EdgeKey
- Identity of a control-flow edge: the jump at
pcin the code running ataddresstojump_dest, optionally split by call depth. - 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§
- Coverage
Item Kind - Edge
CovKind - Edge coverage collection kind.
- Edge
Coverage - Execution
Anchor Kind - The execution path associated with an execution-based anchor.
Constants§
- MAX_
EDGE_ COUNT - Default capacity for the hitcount buffer.