@@ -973,7 +973,7 @@ sub append
973973 $record -> branchCovCount($key , " age" , $ageval ));
974974 } elsif ($covType == MCDC_DATA) {
975975 $self -> mcdcCovCount($key , " age" , $ageval ,
976- $record -> branchCovCount ($key , " age" , $ageval ));
976+ $record -> mcdcCovCount ($key , " age" , $ageval ));
977977 } else {
978978 $self -> functionCovCount($key , ' age' , $ageval ,
979979 $record -> functionCovCount($key , " age" , $ageval ));
@@ -4773,7 +4773,7 @@ sub _countMcdcTlaData
47734773 $developer = $srcLine -> owner();
47744774
47754775 if (defined ($developer )) {
4776- my $shash = $self -> [BRANCH_OWNERS ];
4776+ my $shash = $self -> [MCDC_OWNERS ];
47774777 if (!exists ($shash -> {$developer })) {
47784778 $shash -> {$developer } = {};
47794779 $shash -> {$developer }-> {lines } = [];
@@ -5822,7 +5822,7 @@ sub new
58225822 # use 'current' count...
58235823 my ($tla , $b_count , $c_count ) =
58245824 @{$expr -> count($sense )};
5825- die (" unexpected branch TLA $tla for count $c_count at "
5825+ die (" unexpected MC/DC TLA $tla for count $c_count at "
58265826 . $fileDetails -> path()
58275827 . " :$line " )
58285828 unless (
@@ -11719,8 +11719,17 @@ sub buildOwnerSummaryTable($$$$$$$$$$)
1171911719 my $first = 1;
1172011720 # owners are sorted from most uncovered lines to least
1172111721 foreach my $od (@$ownerList ) {
11722- my ($name , $lineData , $branchData ) = @$od ;
11723- my $d = ($covType == SummaryInfo::LINE_DATA) ? $lineData : $branchData ;
11722+ my ($name , $lineData , $branchData , $funcData , $mcdcData ) = @$od ;
11723+ my $d ;
11724+ if ($covType == SummaryInfo::LINE_DATA) {
11725+ $d = $lineData ;
11726+ } elsif ($covType == SummaryInfo::BRANCH_DATA) {
11727+ $d = $branchData ;
11728+ } else {
11729+ die (" unexpected type '$covType '" )
11730+ unless ($covType == SummaryInfo::MCDC_DATA);
11731+ $d = $mcdcData ;
11732+ }
1172411733 my ($missed , $found ) = @$d ;
1172511734
1172611735 # only put user in table if they are responsible for at least one point
@@ -12337,8 +12346,8 @@ END_OF_HTML
1233712346 if ($main::show_tla ) {
1233812347 my @tlaRow =
1233912348 buildHeaderSummaryTableRow($summary , SummaryInfo::MCDC_DATA,
12340- $fileDetail , \&SourceFile::nextBranchTlaGroup ,
12341- $tlaSummaryTypes );
12349+ $fileDetail , \&SourceFile::nextMcdcTlaGroup ,
12350+ $tlaSummaryTypes );
1234212351 push (@dataRow , @tlaRow );
1234312352 }
1234412353 push (@row_right , \@dataRow )
@@ -12457,7 +12466,7 @@ END_OF_HTML
1245712466 $summary ,
1245812467 SummaryInfo::MCDC_DATA,
1245912468 $fileDetail ,
12460- \&SourceFile::nextBranchInOwnerBin ,
12469+ \&SourceFile::nextMcdcInOwnerBin ,
1246112470 " MC/DC coverage ownership bins" ,
1246212471 $ownerBinDetailPage ,
1246312472 scalar (@dataRow ),
0 commit comments