Skip to main content

Module coverage

Module coverage 

Source
Expand description

Coverage reports.

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