File Coverage

Build
Criterion Covered Total %
statement 26 32 81.2
branch 3 8 37.5
condition 1 2 50.0
subroutine 7 7 100.0
pod n/a
total 37 49 75.5


line stmt bran cond sub pod time code
1             #!/usr/local/bin/perl
2              
3 1     1   3421 use strict;
  1         2  
  1         29  
4 1     1   3 use warnings;
  1         2  
  1         42  
5              
6 1     1   353 use ExtUtils::Helpers 'make_executable';
  1         4558  
  1         47  
7 1     1   5 use File::Basename 'basename';
  1         1  
  1         29  
8 1     1   349 use File::Copy 'copy';
  1         6188  
  1         52  
9              
10 1     1   379 use lib 'lib';
  1         569  
  1         4  
11 1     1   443 use CPAN::Static::Install ':all';
  1         21  
  1         2094  
12              
13 1         176852 my %opts = opts_from_args_list(@ARGV);
14 1 50       70 if (basename($0) eq 'Build.PL') {
15 0         0 configure(%opts, static_version => supports_static_install);
16 0         0 copy('Build.PL', 'Build');
17 0         0 make_executable('Build');
18             } else {
19 1   50     7 my $command = shift || 'build';
20 1 50       6 if ($command eq 'build') {
    50          
    0          
21 0         0 build(%opts);
22             } elsif ($command eq 'test') {
23 1         5 test(%opts);
24             } elsif ($command eq 'install') {
25 0         0 install(%opts);
26             } else {
27 0         0 die "Unknown subcommand $command";
28             }
29             }