Perlinfo.pm

filter: Statementstmt 100% 33 / 33 Branchbran 66.6% 4 / 6 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 1 totaltotal 87.0% 47 / 54 SCAR 13.9
CC
4
Cov
90%
perlinfo
4.5
BEGIN
1.0
BEGIN
1.0
CRAP 4.0
« Perlinfo/Apache.pm ↑ Summary Perlinfo/Loaded.pm »
1 package HTML::Perlinfo;
2 5 ▶BEGIN { %HTML::Perlinfo::Seen = %INC }
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 ▶use HTML::Perlinfo::Apache;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use HTML::Perlinfo::Modules;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use HTML::Perlinfo::Common;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 ▶use base qw(Exporter HTML::Perlinfo::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 5 our @EXPORT = qw(perlinfo);
14  
15 5 our $VERSION = '1.72';
16  
17 sub perlinfo {
18 4 ▶ my ($opt) = @_;
Subroutine perlinfo: called CC=4 SCAR=15.0
Pod undocumented
19 4 ▶ $opt = 'INFO_ALL' unless $opt;
Branch: 1 branch
BranchTrueFalseTotal
unless $opt 0 4 4
20  
21 4 ▶ error_msg("Invalid perlinfo() parameter: @_")
Branch: 1 branch
BranchTrueFalseTotal
if not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/ or @_ > 1 0 4 4
Condition33%1/3
not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/ or @_ > 1
l!l&&r!l&&!r
004
MC/DC0%0/2
not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/ or @_ > 1
not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/ @_ > 1
Truth table33%1/3
not(A) or B
A= not $opt =~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/B= @_ > 1
ABresult
1X1
011
000
22 if (($opt !~ /^INFO_(?:ALL|GENERAL|CONFIG|VARIABLES|APACHE|MODULES|LICENSE|LOADED)$/) || @_ > 1);
23  
24 4 $opt = lc $opt;
25 4 my $p = HTML::Perlinfo->new();
26 4 $p->$opt;
27  
28 }
29 5 foreach my $key (%HTML::Perlinfo::Seen) {
30 844 ▶ $INC{$key} = $HTML::Perlinfo::Seen{$key} unless exists $INC{$key};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $INC{$key} 422 422 844
31 }
32 5 1;
33 __END__
« Perlinfo/Apache.pm ↑ Summary Perlinfo/Loaded.pm »