Expand description
Coverage reports.
Re-exportsΒ§
use crate::result::TestKind;πuse crate::result::TestOutcome;πuse crate::result::TestResult;πuse crate::result::TestStatus;πuse alloy_primitives::map::HashMap;πuse alloy_primitives::map::HashSet;πuse comfy_table::Attribute;πuse comfy_table::Cell;πuse comfy_table::Color;πuse comfy_table::Row;πuse comfy_table::Table;πuse comfy_table::presets::ASCII_FULL;πuse comfy_table::presets::ASCII_MARKDOWN;πuse foundry_common::fs;πuse foundry_common::shell;πuse foundry_compilers::artifacts::Source;πuse foundry_evm::core::bytecode::InstIter;πuse semver::Version;πuse serde::Serialize;πuse serde::Serialize;πuse serde::ser::SerializeSeq;πuse std::collections::BTreeMap;πuse std::collections::hash_map;πuse std::io::Write;πuse std::path::Path;πuse std::path::PathBuf;π
ModulesΒ§
StructsΒ§
- Attribution
Item π - A source range covered by a test, with hit counts and item metadata.
- Attribution
Report π - Top-level JSON payload for per-test coverage attribution.
- Attribution
Test π - Coverage attributed to a single executed test.
- Attribution
Tests π - Serializer state for streaming attribution entries from test results.
- Bytecode
Reporter - CmpOperands
- A comparison operand pair captured during execution.
- Contract
Id - A unique identifier for a contract.
- Coverage
Attribution Reporter - Writes per-test coverage attribution as JSON.
- Coverage
Item - Coverage
Report - A coverage report.
- Coverage
Summary - Coverage summary for a source file.
- Coverage
Summary Reporter - A simple summary reporter that prints the coverage results in a table.
- Debug
Reporter - A super verbose reporter for debugging coverage while it is still unstable.
- 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.
- GapItem π
- An uncovered coverage item.
- Gaps
Report π - Top-level JSON payload for the coverage gaps report.
- Gaps
Reporter - Writes the uncovered coverage items of each source file as JSON.
- 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.
- Lcov
Reporter - Writes the coverage report in LCOVβs tracefile format.
- Line
Coverage Collector - Inspector implementation for collecting coverage information.
- Line
Number πCache - Cache line number offsets for source files
- Resolved
HitMap - A hit map resolved to the contract coverage metadata it belongs to.
- 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.
TraitsΒ§
- Coverage
Reporter - A coverage reporter.
FunctionsΒ§
- attributed_
items π - coverage_
item_ πkind_ fields - format_
cell π - test_
kind_ πname - test_
status_ πname