lib/Module/Install/Admin/Makefile.pm

filter: Statementstmt 100% 29 / 29 Branchbran 75.0% 3 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 88.8% 40 / 45 CC 4 SCAR 5.9
CC
4
Cov
94%
postamble
3.0
preop
2.0
BEGIN
1.0
CRAP 1.8
« lib/Module/Install/Base.pm ↑ Summary lib/Module/Install/Deprecated.pm »
1 package Module::Install::Admin::Makefile;
2  
3 46 ▶use strict 'vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 46 ▶use Module::Install::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 46 ▶use ExtUtils::MakeMaker ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 46 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
8 46 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
9 46 $VERSION = '1.21';
10 46 @ISA = qw{Module::Install::Base};
11 }
12  
13 39 ▶sub postamble {
Subroutine postamble: called CC=3 SCAR=11.1
Pod undocumented
14 39 my ($self, $text) = @_;
15 39 my $class = ref($self);
16 39 my $top_class = ref($self->_top);
17 39 my $admin_class = join('::', @{$self->_top}{qw(name dispatch)});
18  
19 39 ▶ $self->{postamble} ||= << "END_MAKEFILE";
Condition50%1/2
$self->{"postamble"} ||= qq[# --- $class section:\n\nrealclean purge ::\n\t\$(RM_F) \$(DISTVNAME).tar\$(SUFFIX)\n\t\$(RM_F) MANIFEST.bak _build\n\t\$(PERL) "-Ilib" "-M$admin_class" -e "remove_meta()"\n\t\$(RM_RF) inc\n\nreset :: purge\n\nupload :: test dist\n\tcpan-upload -verbose \$(DISTVNAME).tar\$(SUFFIX)\n\ngrok ::\n\tperldoc $top_class\n\ndistsign ::\n\tcpansign -s\n\n]
l!l
039
MC/DC0%0/1
$self->{"postamble"} ||= qq[# --- $class section:\n\nrealclean purge ::\n\t\$(RM_F) \$(DISTVNAME).tar\$(SUFFIX)\n\t\$(RM_F) MANIFEST.bak _build\n\t\$(PERL) "-Ilib" "-M$admin_class" -e "remove_meta()"\n\t\$(RM_RF) inc\n\nreset :: purge\n\nupload :: test dist\n\tcpan-upload -verbose \$(DISTVNAME).tar\$(SUFFIX)\n\ngrok ::\n\tperldoc $top_class\n\ndistsign ::\n\tcpansign -s\n\n]
$self->{"postamble"}
Truth table50%1/2
A
A= $self->{"postamble"}
Aresult
11
00
20 # --- $class section:
21  
22 realclean purge ::
23 \t\$(RM_F) \$(DISTVNAME).tar\$(SUFFIX)
24 \t\$(RM_F) MANIFEST.bak _build
25 \t\$(PERL) "-Ilib" "-M$admin_class" -e "remove_meta()"
26 \t\$(RM_RF) inc
27  
28 reset :: purge
29  
30 upload :: test dist
31 \tcpan-upload -verbose \$(DISTVNAME).tar\$(SUFFIX)
32  
33 grok ::
34 \tperldoc $top_class
35  
36 distsign ::
37 \tcpansign -s
38  
39 END_MAKEFILE
40  
41 39 ▶ $self->{postamble} .= $text if defined $text;
Branch: 1 branch
BranchTrueFalseTotal
if defined $text 0 39 39
42 39 return $self->{postamble};
43 }
44  
45 42 ▶sub preop {
Subroutine preop: called CC=2 SCAR=6.9
Pod undocumented
46 42 my $self = shift;
47 42 my ($user_preop) = @_;
48 42 my $admin_class = join('::', @{$self->_top}{qw(name dispatch)});
49 42 ▶ $user_preop = qq{\$(PERL) -I. "-M$admin_class" -e "dist_preop(q(\$(DISTVNAME)))"} unless $user_preop;
Branch: 1 branch
BranchTrueFalseTotal
unless $user_preop 41 1 42
50 42 return { PREOP => $user_preop };
51 }
52  
53 46 1;
« lib/Module/Install/Base.pm ↑ Summary lib/Module/Install/Deprecated.pm »