Module coverage

Source

Modulesยง

counters ๐Ÿ”’
graph ๐Ÿ”’
mappings ๐Ÿ”’
query ๐Ÿ”’
spans ๐Ÿ”’
unexpand ๐Ÿ”’

Structsยง

ExtractedHirInfo ๐Ÿ”’
Function information extracted from HIR by the coverage instrumentor.
InstrumentCoverage ๐Ÿ”’
Inserts StatementKind::Coverage statements that either instrument the binary with injected counters, via intrinsic llvm.instrprof.increment, and/or inject metadata used during codegen to construct the coverage map.

Functionsยง

create_mappings ๐Ÿ”’
For each coverage span extracted from MIR, create a corresponding mapping.
extract_hir_info ๐Ÿ”’
extract_hole_spans_from_hir ๐Ÿ”’
hash_mir_source ๐Ÿ”’
inject_coverage_statements ๐Ÿ”’
Inject any necessary coverage statements into MIR, so that they influence codegen.
inject_mcdc_statements ๐Ÿ”’
For each conditions inject statements to update condition bitmap after it has been evaluated. For each decision inject statements to update test vector bitmap after it has been evaluated.
inject_statement ๐Ÿ”’
instrument_function_for_coverage ๐Ÿ”’