Permalink
Browse files

Report on non-blib directories in Vim report.

  • Loading branch information...
1 parent f0c7525 commit 0a5d30766b2a284092fbdf679939214ccd68eef5 @pjcj committed Apr 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Devel/Cover/Report/Vim.pm
@@ -85,7 +85,11 @@ sub report
coverage => join ", ", map {
my ($cov, $err) = coverage($db, $_);
local $" = ", ";
- "'$_': [ [ @$cov ], [ @$err ] ]"
+ my $c = "'$_': [ [ @$cov ], [ @$err ] ]";
+ my @c = ($c);
+ $c =~ s/^'blib/'/;
+ push @c, $c if $c ne $c[0];
+ @c
} @{$options->{file}},
};

0 comments on commit 0a5d307

Please sign in to comment.