blib/lib/Module/Install/ReadmePodFromPod.pm

filter: Statementstmt 63.6% 14 / 22 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 54.2% 19 / 35 CC 4 SCAR 23.5
CC
4
Cov
50%
readme_pod_from
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 10.5
« inc/Module/Install/AuthorTests.pm ↑ Summary inc/Module/Install/WriteAll.pm »
1 package Module::Install::ReadmePodFromPod;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use base qw(Module::Install::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 $VERSION = '0.01';
8  
9 0 ▶sub readme_pod_from {
Subroutine readme_pod_from: not called CC=4 SCAR=30.0
Pod documented
10 0 my $self = shift;
11 0 ▶ return unless $Module::Install::AUTHOR;
Branch: 1 branch
BranchTrueFalseTotal
unless $Module::Install::AUTHOR 0 0 0
12 0 ▶ my $file = shift || return;
Condition0%0/2
shift() || (return)
l!l
00
MC/DC0%0/1
shift() || (return)
shift()
Truth table0%0/2
A
A= shift()
Aresult
11
00
13  
14 0 require Pod::Perldoc::ToPod;
15 0 ▶ open my $out, '>', 'README.pod' or die "can not create README.pod file: $!";
Branch: 1 branch
BranchTrueFalseTotal
open my $out, ">", "README.pod" or die "can not create README.pod file: $!" 0 0 0
16 0 my $parser = Pod::Perldoc::ToPod->new;
17 0 $parser->parse_from_file($file, $out);
18 0 return 1;
19 }
20  
21 1 'let README.pod render Pod as ... Pod!';
22 __END__
« inc/Module/Install/AuthorTests.pm ↑ Summary inc/Module/Install/WriteAll.pm »