blib/lib/Module/Install/AutoConf.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 6 / 8 Podpod 100% 1 / 1 totaltotal 71.4% 25 / 35 CC 2 SCAR 8.0
CC
2
Cov
72%
_makefile
6.0
makefile
2.0
BEGIN
1.0
CRAP 2.2
↑ Summary
1 package Module::Install::AutoConf;
2  
3 1 ▶use 5.005;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Module::Install::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Module::Install::AutoConf - tools to intigrate Module::Install with the
11 Gnu autoconf tools
12  
13 =head1 VERSION
14  
15 0.001
16  
17 =cut
18  
19 1 ▶use vars qw{$VERSION $ISCORE @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 $VERSION = '0.001';
22 1 $ISCORE = 0;
23 1 @ISA = qw{Module::Install::Base};
24 }
25  
26 =head1 COMMANDS
27  
28 This plugin adds the following Module::Install commands:
29  
30 =head2 makefile
31  
32 makefile('pmakefile');
33  
34 Change the name of the makefile to 'pamakefile'.
35  
36 =cut
37  
38 0 ▶sub makefile {
Subroutine makefile: not called CC=1 SCAR=6.9
Pod documented
39 0 my ($self, $name) = @_;
40 0 _makefile($self, $name);
41 }
42  
43 0 ▶sub _makefile {
Subroutine _makefile: not called CC=2 SCAR=17.9
44 0 my ($self, $name) = @_;
45 0 ▶ $name //= 'pmakefile';
Condition0%0/2
$name //= "pmakefile"
l!l
00
MC/DC0%0/1
$name //= "pmakefile"
$name
Truth table0%0/2
A
A= $name
Aresult
11
00
46 0 $self->makemaker_args->{FIRST_MAKEFILE} = $name;
47 }
48  
49 =head1 HOW IT WORKS
50  
51 =head1 BUGS
52  
53 Please report any bugs or feature requests through the web interface at
54 L<http://rt.cpan.org>. I will be notified, and then you'll automatically be
55 notified of progress on your bug as I make changes.
56  
57 =head1 COPYRIGHT
58  
59 Copyright 2011, G. Allen Morris III. This program is free software; you can
60 redistribute it and/or modify it under the same terms as Perl itself.
61  
62 =cut
63  
64 1 1;
↑ Summary