inc/Module/Install/ReadmeFromPod.pm

filter: Statementstmt 53.8% 14 / 26 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 43.9% 18 / 41 CC 5 SCAR 28.4
CC
5
Cov
41%
readme_from
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 17.1
« inc/Module/Install/Can.pm ↑ Summary inc/Module/Install/AuthorTests.pm »
1 #line 1
2 package Module::Install::ReadmeFromPod;
3 1 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw(Module::Install::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 use vars qw($VERSION);
8 1  
9 $VERSION = '0.06';
10 0 ▶ 
Subroutine readme_from: not called CC=5 SCAR=34.0
Pod undocumented
11 0 sub readme_from {
12 0 ▶ my $self = shift;
Branch: 1 branch
BranchTrueFalseTotal
unless $Module::Install::AUTHOR 0 0 0
13 0 ▶ return unless $Module::Install::AUTHOR;
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
14 0 my $file = shift || return;
15 0 my $clean = shift;
16 0 require Pod::Text;
17 0 ▶ my $parser = Pod::Text->new();
Branch: 1 branch
BranchTrueFalseTotal
open README, "> README" or die "$!\n" 0 0 0
18 0 open README, '> README' or die "$!\n";
19 0 $parser->output_fh( *README );
20 0 ▶ $parser->parse_file( $file );
Branch: 1 branch
BranchTrueFalseTotal
unless $clean 0 0 0
21 0 return 1 unless $clean;
22 $self->postamble(<<"END");
23 distclean :: license_clean
24  
25 license_clean:
26 \t\$(RM_F) README
27 0 END
28 return 1;
29 }
30 1  
31 'Readme!';
32  
33 __END__
« inc/Module/Install/Can.pm ↑ Summary inc/Module/Install/AuthorTests.pm »