lib/CPANPLUS/Dist/Build/Constants.pm

filter: Statementstmt 96.9% 32 / 33 Branchbran 33.3% 2 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod n/a totaltotal 88.0% 44 / 50 CC 4 SCAR 7.8
CC
4
Cov
87%
__ANON__
6.0
__ANON__
3.2
BEGIN
1.0
CRAP 2.2
« lib/CPANPLUS/Dist/Build.pm ↑ Summary blib/lib/CPANPLUS/Dist/Build/Constants.pm »
1 package CPANPLUS::Dist::Build::Constants;
2 4 $CPANPLUS::Dist::Build::Constants::VERSION = '0.88';
3 #ABSTRACT: Constants for CPANPLUS::Dist::Build
4  
5 4 ▶use if $] > 5.017, 'deprecate';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 BEGIN {
12  
13 4 ▶ require Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶ use vars qw[@ISA @EXPORT];
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 4 @ISA = qw[Exporter];
17 4 @EXPORT = qw[ BUILD_DIR BUILD CPDB_PERL_WRAPPER];
18 }
19  
20  
21 use constant BUILD_DIR => sub { return @_
22 0 ▶ ? File::Spec->catdir($_[0], '_build')
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
23 : '_build';
24 4 ▶ };
Subroutine BEGIN: called CC=1 SCAR=0.0
25 15 ▶use constant BUILD => sub { my $file = @_
Subroutine __ANON__: called CC=3 SCAR=11.7
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 15 0 15
26 ? File::Spec->catfile($_[0], 'Build')
27 : 'Build';
28  
29 ### on VMS, '.com' is appended when
30 ### creating the Build file
31 15 ▶ $file .= '.com' if $^O eq 'VMS';
Branch: 1 branch
BranchTrueFalseTotal
if $^O eq "VMS" 0 15 15
32  
33 15 return $file;
34 4 ▶ };
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36  
37 4 ▶use constant CPDB_PERL_WRAPPER => 'use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; }';
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39 4 1;
40  
41  
42 # Local variables:
43 # c-indentation-style: bsd
44 # c-basic-offset: 4
45 # indent-tabs-mode: nil
46 # End:
47 # vim: expandtab shiftwidth=4:
48  
49 __END__
« lib/CPANPLUS/Dist/Build.pm ↑ Summary blib/lib/CPANPLUS/Dist/Build/Constants.pm »