Skip to main content

Module coverage

Module coverage 

Source
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Β§

analysis
anchors

StructsΒ§

AttributionItem πŸ”’
A source range covered by a test, with hit counts and item metadata.
AttributionReport πŸ”’
Top-level JSON payload for per-test coverage attribution.
AttributionTest πŸ”’
Coverage attributed to a single executed test.
AttributionTests πŸ”’
Serializer state for streaming attribution entries from test results.
BytecodeReporter
ContractId
A unique identifier for a contract.
CoverageAttributionReporter
Writes per-test coverage attribution as JSON.
CoverageItem
CoverageReport
A coverage report.
CoverageSummary
Coverage summary for a source file.
CoverageSummaryReporter
A simple summary reporter that prints the coverage results in a table.
DebugReporter
A super verbose reporter for debugging coverage while it is still unstable.
ExecutionAnchor
An execution-based anchor for a coverage item without source-mapped bytecode.
GapItem πŸ”’
An uncovered coverage item.
GapsReport πŸ”’
Top-level JSON payload for the coverage gaps report.
GapsReporter
Writes the uncovered coverage items of each source file as JSON.
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.
LcovReporter
Writes the coverage report in LCOV’s tracefile format.
LineCoverageCollector
Inspector implementation for collecting coverage information.
LineNumberCache πŸ”’
Cache line number offsets for source files
ResolvedHitMap
A hit map resolved to the contract coverage metadata it belongs to.
SourceLocation
A source location.

EnumsΒ§

CoverageItemKind
ExecutionAnchorKind
The execution path associated with an execution-based anchor.

TraitsΒ§

CoverageReporter
A coverage reporter.

FunctionsΒ§

attributed_items πŸ”’
coverage_item_kind_fields πŸ”’
format_cell πŸ”’
test_kind_name πŸ”’
test_status_name πŸ”’

Type AliasesΒ§

ResolvedHitMaps