File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
PHP/CodeCoverage/Report/HTML/Node Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -598,6 +598,10 @@ protected function calculateStatistics()
598598 $ this ->numTestedMethods ++;
599599 }
600600
601+ $ method ['crap ' ] = PHP_CodeCoverage_Util::crap (
602+ $ method ['ccn ' ], $ method ['coverage ' ]
603+ );
604+
601605 $ class ['ccn ' ] += $ method ['ccn ' ];
602606 }
603607
@@ -612,6 +616,10 @@ protected function calculateStatistics()
612616 if ($ class ['coverage ' ] == 100 ) {
613617 $ this ->numTestedClasses ++;
614618 }
619+
620+ $ class ['crap ' ] = PHP_CodeCoverage_Util::crap (
621+ $ class ['ccn ' ], $ class ['coverage ' ]
622+ );
615623 }
616624 }
617625 }
@@ -814,7 +822,8 @@ protected function processClasses()
814822 'executableLines ' => 0 ,
815823 'executedLines ' => 0 ,
816824 'ccn ' => 0 ,
817- 'coverage ' => 0
825+ 'coverage ' => 0 ,
826+ 'crap ' => 0
818827 );
819828
820829 $ this ->startLines [$ class ['startLine ' ]] = &$ this ->classes [$ className ];
@@ -827,7 +836,8 @@ protected function processClasses()
827836 'executableLines ' => 0 ,
828837 'executedLines ' => 0 ,
829838 'ccn ' => $ method ['ccn ' ],
830- 'coverage ' => 0
839+ 'coverage ' => 0 ,
840+ 'crap ' => 0
831841 );
832842
833843 $ this ->startLines [$ method ['startLine ' ]] = &$ this ->classes [$ className ]['methods ' ][$ methodName ];
You can’t perform that action at this time.
0 commit comments