File Coverage

blib/lib/Alien/autoconf.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1             package Alien::autoconf;
2              
3 1     1   346256 use strict;
  1         3  
  1         42  
4 1     1   11 use warnings;
  1         3  
  1         60  
5 1     1   21 use 5.008001;
  1         4  
6 1     1   9 use base qw( Alien::Base );
  1         3  
  1         371  
7              
8             # ABSTRACT: Build or find autoconf
9             our $VERSION = '0.20'; # VERSION
10              
11              
12             my %helper;
13              
14             foreach my $command (qw( autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames ))
15             {
16             if($^O eq 'MSWin32')
17             {
18             $helper{$command} = sub { qq{sh -c "$command "\$*"" --} };
19             }
20             else
21             {
22             $helper{$command} = sub { $command };
23             }
24             }
25              
26             sub alien_helper {
27 1     1 1 365471 return \%helper;
28             }
29              
30             1;
31              
32             __END__