_build/lib/XML/Chain/MB_Builder.pm

filter: Statementstmt 54.1% 13 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 51.6% 16 / 31 CC 3 SCAR 18.7
CC
3
Cov
50%
create_readme
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« blib/lib/XML/Chain.pm ↑ Summary Build »
1 package XML::Chain::MB_Builder;
2 1 ▶use Module::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 our @ISA = qw(Module::Build);
4  
5 1 ▶ eval q|
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
6 use Path::Class qw(file);
7 use Pod::Simple::Text;
8 |;
9 1 my $skip_readme = $@;
10  
11 sub create_readme {
12 0 ▶ die 'unable to create readme: '.$skip_readme
Subroutine create_readme: not called CC=3 SCAR=24.8
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
if $skip_readme 0 0 0
13 if $skip_readme;
14 0 my @readmes;
15 0 my @lib_files = qw(
16 lib/XML/Chain.pm
17 lib/XML/Chain/Selector.pm
18 lib/XML/Chain/Element.pm
19 );
20 0 foreach my $file (@lib_files) {
21 0 my $pst = Pod::Simple::Text->new;
22 0 my $readme = '';
23 0 $pst->output_string(\$readme);
24 0 $pst->parse_file($file);
25 0 push(@readmes, $readme);
26 }
27 0 file('README')->spew(join("\n".('-'x76)."\n", @readmes));
28  
29 0 return;
30 }
31
32 1 1;
« blib/lib/XML/Chain.pm ↑ Summary Build »