coverage: Rename MC/DC conditions_num
to num_conditions
This value represents a quantity of conditions, not an ID, so the new spelling is more appropriate.
This commit is contained in:
parent
23ea77b8ed
commit
c671eaaaff
10 changed files with 34 additions and 33 deletions
|
@ -195,9 +195,9 @@ fn create_mappings<'tcx>(
|
|||
));
|
||||
|
||||
mappings.extend(mcdc_decisions.iter().filter_map(
|
||||
|&mappings::MCDCDecision { span, bitmap_idx, conditions_num, .. }| {
|
||||
|&mappings::MCDCDecision { span, bitmap_idx, num_conditions, .. }| {
|
||||
let code_region = region_for_span(span)?;
|
||||
let kind = MappingKind::MCDCDecision(DecisionInfo { bitmap_idx, conditions_num });
|
||||
let kind = MappingKind::MCDCDecision(DecisionInfo { bitmap_idx, num_conditions });
|
||||
Some(Mapping { kind, code_region })
|
||||
},
|
||||
));
|
||||
|
@ -269,7 +269,7 @@ fn inject_mcdc_statements<'tcx>(
|
|||
span: _,
|
||||
ref end_bcbs,
|
||||
bitmap_idx,
|
||||
conditions_num: _,
|
||||
num_conditions: _,
|
||||
decision_depth,
|
||||
} in &extracted_mappings.mcdc_decisions
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue