@@ -4036,10 +4036,11 @@ sub _countBranchTlaData
4036
4036
my %foundBranchTlas ;
4037
4037
my ($src_age , $developer , $srcLine );
4038
4038
my $lineTla = $lineData -> tla();
4039
+ $srcLine = $self -> line($line );
4040
+ $srcLine -> branchElem($differentialData );
4039
4041
if (@SourceFile::annotateScript &&
4040
4042
!grep (/ ^$lineTla $ / , (' DUB' , ' DCB' ))) {
4041
4043
# deleted lines don't have owner data...
4042
- $srcLine = $self -> line($line );
4043
4044
if (!defined ($srcLine )) {
4044
4045
lcovutil::ignorable_error($lcovutil::ERROR_UNMAPPED_LINE ,
4045
4046
" no data for 'branch' line:$line , file:" . $self -> path());
@@ -4048,7 +4049,6 @@ sub _countBranchTlaData
4048
4049
# library - then we might not have file history for it.
4049
4050
$src_age = $srcLine -> age();
4050
4051
$developer = $srcLine -> owner();
4051
- $srcLine -> branchElem($differentialData );
4052
4052
4053
4053
if (defined ($developer )) {
4054
4054
my $shash = $self -> [BRANCH_OWNERS];
@@ -4081,8 +4081,8 @@ sub _countBranchTlaData
4081
4081
$foundBranchTlas {$tla } = 1;
4082
4082
$self -> [BRANCH_CATEGORIES]-> {$tla } = []
4083
4083
unless exists ($self -> [BRANCH_CATEGORIES]-> {$tla });
4084
- push (@{$self -> [BRANCH_CATEGORIES]-> {$tla }}, $line );
4085
4084
}
4085
+ push (@{$self -> [BRANCH_CATEGORIES]-> {$tla }}, $line );
4086
4086
4087
4087
next
4088
4088
if (0 == ($SummaryInfo::tlaLocation {$tla } & 0x1));
@@ -4092,7 +4092,11 @@ sub _countBranchTlaData
4092
4092
# and the age...
4093
4093
# lcovutil::info("$l: $tla" . $lineData->in_curr() . "\n");
4094
4094
4095
- next unless defined ($srcLine ) && defined ($src_age );
4095
+ unless (defined ($srcLine ) && defined ($src_age )) {
4096
+ # just count totals
4097
+ $fileSummary -> branchCovCount($tla , ' noGroup' , undef , 1);
4098
+ next ;
4099
+ }
4096
4100
4097
4101
# increment count of branches of this age we found for this TLA
4098
4102
$fileSummary -> branchCovCount($tla , " age" , $src_age , 1);
@@ -9364,8 +9368,8 @@ sub write_source_line(*$$$$)
9364
9368
# '$result' is used to generate the PNG frame
9365
9369
info(2,
9366
9370
" $bucket : line=$line " .
9367
- (defined ($count ) ? " count= $count " : " " ) . ' curr=' .
9368
- (defined ($curr_count ) ? $curr_count : ' -' ) . ' base=' .
9371
+ (defined ($count ) ? " count= $count " : " " ) . ' curr=' .
9372
+ (defined ($curr_count ) ? $curr_count : ' -' ) . ' base=' .
9369
9373
(defined ($base_count ) ? $base_count : ' -' ) . " \n " );
9370
9374
}
9371
9375
$result .= " :" . $source ;
0 commit comments