inc/Module/Install/ReadmePodFromPod.pm

filter: Statementstmt 100% 22 / 22 Branchbran 50.0% 2 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 88.5% 31 / 35 CC 4 SCAR 9.5
CC
4
Cov
89%
readme_pod_from
4.2
BEGIN
1.0
BEGIN
1.0
CRAP 2.6
« inc/Module/Install.pm ↑ Summary inc/Module/Install/Base.pm »
1 #line 1
2 1 ▶package Module::Install::ReadmePodFromPod;
Subroutine BEGIN: called CC=1 SCAR=0.0
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::Install::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 use vars qw($VERSION);
7 1  
8 $VERSION = '0.01';
9 1 ▶ 
Subroutine readme_pod_from: called CC=4 SCAR=14.2
Pod documented
10 1 sub readme_pod_from {
11 1 ▶ my $self = shift;
Branch: 1 branch
BranchTrueFalseTotal
unless $Module::Install::AUTHOR 0 1 1
12 1 ▶ return unless $Module::Install::AUTHOR;
Condition50%1/2
shift() || (return)
l!l
10
MC/DC0%0/1
shift() || (return)
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
13 my $file = shift || return;
14 1  
15 1 ▶ require Pod::Perldoc::ToPod;
Branch: 1 branch
BranchTrueFalseTotal
open my $out, ">", "README.pod" or die "can not create README.pod file: $!" 1 0 1
16 1 open my $out, '>', 'README.pod' or die "can not create README.pod file: $!";
17 1 my $parser = Pod::Perldoc::ToPod->new;
18 1 $parser->parse_from_file($file, $out);
19 return 1;
20 }
21 1  
22 'let README.pod render Pod as ... Pod!';
23 __END__
« inc/Module/Install.pm ↑ Summary inc/Module/Install/Base.pm »