Skip to content
Browse files

Add details popups to summary percentages in html_basic.

  • Loading branch information...
1 parent 1389d4e commit e1a44d1c8e466ff82b336b19be4d00c138de6191 @pjcj committed May 7, 2005
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Devel/Cover/Report/Html_basic.pm
View
4 lib/Devel/Cover/Report/Html_basic.pm
@@ -59,7 +59,9 @@ sub get_summary
$vals{class} = class($c->{percentage}, $c->{error}, $criterion);
return \%vals unless defined $c->{percentage};
- $vals{pc} = sprintf "%4.1f", $c->{percentage};
+ $vals{pc} = sprintf "%4.1f", $c->{percentage};
+ $c->{covered} ||= 0;
+ $vals{details} = "$c->{covered} / $c->{total}";
my $cr = $criterion eq "pod" ? "subroutine" : $criterion;
return \%vals

0 comments on commit e1a44d1

Please sign in to comment.
Something went wrong with that request. Please try again.