Makefile_footer.PL

filter: Statementstmt 16.6% 3 / 18 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 1 / 4 Podpod n/a totaltotal 15.3% 4 / 26 CC 3 SCAR 19.2
CC
3
Cov
14%
pm_to_blib
12.0
test_via_harness
2.0
test_via_script
2.0
CRAP 6.8
« blib/lib/Perl/Type/Integer.pm ↑ Summary blib/lib/Perl/Structure/Array/SubTypes.pm »
1 #our $VERSION = 0.042_000; # DEV NOTE: comment to avoid potential conflict w/ Dist::Zilla & friends
2  
3 package MY;
4 1 ▶BEGIN { use English; }
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub pm_to_blib {
Subroutine pm_to_blib: not called CC=3 SCAR=24.8
7 0 my $self = shift;
8 0 my $blib = $self->SUPER::pm_to_blib(@_);
9  
10 # un-read-only blib/lib for tests to pass, files are modified at runtime there
11 0 ▶ if ( $OSNAME eq 'MSWin32' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($OSNAME eq "MSWin32") 0 0 0
12 0 my ( $lastline, $start ) = qq{\t\$(NOECHO) \$(TOUCH) pm_to_blib\n};
13 0 ▶ ( $start = index( $blib, $lastline ) ) == -1
Branch: 1 branch
BranchTrueFalseTotal
($start = index($blib, $lastline)) == -1 and die "Can't find replacement string for pm_to_blib target" 0 0 0
14 && die "Can't find replacement string for pm_to_blib target";
15 0 substr( $blib, $start, 0, "\t" . 'attrib -R /S blib/lib/*' . "\n" );
16 }
17 0 return $blib;
18 }
19  
20 # disable PERL_DL_NONLAZY=1 to avoid C++ compile errors for GMP library (and possibly others)
21 0 ▶sub test_via_harness {
Subroutine test_via_harness: not called CC=1 SCAR=6.9
22 0 my $self = shift;
23 0 my $command = $self->MM::test_via_harness(@_);
24 0 $command =~ s/\bPERL_DL_NONLAZY=1\s+//gxms;
25 0 return $command;
26 }
27  
28 0 ▶sub test_via_script {
Subroutine test_via_script: not called CC=1 SCAR=6.9
29 0 my $self = shift;
30 0 my $command = $self->MM::test_via_script(@_);
31 0 $command =~ s/\bPERL_DL_NONLAZY=1\s+//gxms;
32 0 return $command;
33 }
« blib/lib/Perl/Type/Integer.pm ↑ Summary blib/lib/Perl/Structure/Array/SubTypes.pm »