_build/lib/MyModuleBuilder.pm

filter: Statementstmt 100% 26 / 26 Branchbran 66.6% 4 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 92.1% 35 / 38 CC 4 SCAR 9.2
CC
4
Cov
94%
process_pm_files
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.5
« blib/lib/XML/XPathScript/Processor/XPath.pm ↑ Summary blib/lib/XML/XPathScript/Template/Tag.pm »
1 package MyModuleBuilder;
2 1 ▶use Module::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 our @ISA = qw(Module::Build);
4 1 our $XML_parser = 'XML::LibXML';
5 1 our $with_axkit = '';
6 1 our $with_tomkit = '';
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use File::Spec ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub process_pm_files {
13 1 ▶ my $self = shift;
Subroutine process_pm_files: called CC=4 SCAR=14.0
Pod undocumented
14 1 $self->SUPER::process_pm_files(@_);
15  
16 1 my $outfile = File::Spec->catfile(qw(blib lib XML XPathScript.pm));
17 1 unlink($outfile);
18 1 ▶ my $in = new IO::File("lib/XML/XPathScript.pm", "<") or die "$!";
Branch: 1 branch
BranchTrueFalseTotal
my $in = "IO::File"->new("lib/XML/XPathScript.pm", "<") or die "$!" 0 1 1
19 1 ▶ my $out = new IO::File($outfile, ">") or die "$!";
Branch: 1 branch
BranchTrueFalseTotal
my $out = "IO::File"->new($outfile, ">") or die "$!" 0 1 1
20 1 ▶ while(<$in>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline $in)) 1217 1 1218
21 1217 s/^(\$XML_parser = )'.*?';$/$1'$XML_parser';/;
22 1217 $out->print($_);
23 }
24 }
25  
26  
27 1 1;
« blib/lib/XML/XPathScript/Processor/XPath.pm ↑ Summary blib/lib/XML/XPathScript/Template/Tag.pm »