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 - 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.
- 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 - Execution
Anchor Kind - The execution path associated with an execution-based anchor.
TraitsΒ§
- Coverage
Reporter - A coverage reporter.
FunctionsΒ§
- attributed_
items π - coverage_
item_ πkind_ fields - format_
cell π - test_
kind_ πname - test_
status_ πname