Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use outputfile for both cover and cpancover.

  • Loading branch information...
commit 8ae2f4c7c887ebc82596c554b7ba220e60fe81c7 1 parent 3eff3af
@pjcj authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cpancover
View
6 cpancover
@@ -235,7 +235,7 @@ EOF
sub class
{
my ($pc) = @_;
- $pc eq "n/a" ? "na" :
+ $pc eq "n/a" ? "na" :
$pc < 75 ? "c0" :
$pc < 90 ? "c1" :
$pc < 100 ? "c2" :
@@ -248,7 +248,7 @@ sub write_html
chdir $d or die "Can't chdir $d: $!\n";
my $results = read_results;
- my $f = "$Options->{outputdir}/cpancover.html";
+ my $f = "$Options->{outputdir}/$Options->{outputfile}";
print "\n\nWriting cpancover output to $f ...\n";
my %vals;
@@ -278,7 +278,7 @@ sub write_html
$db->calculate_summary(%options);
push @{$vars->{modules}}, $module;
- $vals{$module}{link} = "$module/coverage.html";
+ $vals{$module}{link} = "$module/$Options->{outputfile}";
for my $criterion (@$criteria)
{
Please sign in to comment.
Something went wrong with that request. Please try again.