builder/MyBuilder.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 91.1% 31 / 34 CC 3 SCAR 5.7
CC
3
Cov
93%
ACTION_code
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« blib/lib/WWW/Form/UrlEncoded.pm ↑ Summary _build/lib/MyBuilder.pm »
1 package builder::MyBuilder;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base qw(Module::Build);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use File::Path;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub ACTION_code {
10 1 ▶ my $self = shift;
Subroutine ACTION_code: called CC=3 SCAR=11.2
Pod undocumented
11 1 $self->SUPER::ACTION_code();
12 1 my $archdir = File::Spec->catdir($self->blib,'arch','auto','WWW','Form','UrlEncoded','XS');
13 1 ▶ File::Path::mkpath($archdir, 0, oct(777)) unless -d $archdir;
Branch: 1 branch
BranchTrueFalseTotal
unless -d $archdir 0 1 1
14 1 my $keep_arch = File::Spec->catfile($archdir,'.keep');
15 1 ▶ open(my $fh,'>',$keep_arch) or die "Couldnot open file for write: $keep_arch, $!";
Branch: 1 branch
BranchTrueFalseTotal
open my $fh, ">", $keep_arch or die "Couldnot open file for write: $keep_arch, $!" 0 1 1
16 1 print $fh "This file required to install files to archdir for backward compatibility\n";
17 }
18  
19 1 1;
« blib/lib/WWW/Form/UrlEncoded.pm ↑ Summary _build/lib/MyBuilder.pm »