Permalink
Browse files

Only collect time coverage when requested.

  • Loading branch information...
1 parent 314a62a commit 71f7ecac4f567937abcad643fa2d7ab09ab51bbd @pjcj committed Aug 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Devel/Cover.pm
View
@@ -851,7 +851,8 @@ sub add_statement_cover
$vec->{size} = $n + 1;
no warnings "uninitialized";
$Run{count}{$File}{time}[$n] += $Coverage->{time}{$key}
- if exists $Coverage->{time} && exists $Coverage->{time}{$key};
+ if $Coverage{time} &&
+ exists $Coverage->{time} && exists $Coverage->{time}{$key};
}
sub add_branch_cover

0 comments on commit 71f7eca

Please sign in to comment.