Permalink
Browse files

Only collect condition coverage when requested.

  • Loading branch information...
1 parent 71f7eca commit 0841b355e21c9bde7accd3f067faa82785fc9080 @pjcj committed Aug 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Devel/Cover.pm
View
@@ -912,6 +912,7 @@ sub add_condition_cover
{
my ($op, $strop, $left, $right) = @_;
+ return unless $Collect && $Coverage{condition};
unless ($Collect)
{
# $condition_locations{$$op} = [ $File, $Line ];

0 comments on commit 0841b35

Please sign in to comment.