Perlinfo/Base.pm

filter: Statementstmt 63.4% 106 / 167 Branchbran 24.1% 27 / 112 Conditioncond 15.6% 8 / 51 MC/DCmcdc 0.0% 0 / 27 Subroutinesub 70.5% 12 / 17 Podpod 0.0% 0 / 12 totaltotal 39.6% 153 / 386 SCAR 70.3
CC
75
Cov
43%
info_apache
110.0
info_all
90.0
info_modules
90.0
CRAP 1131.7
« Perlinfo/Common.pm ↑ Summary Perlinfo/General.pm »
1 package HTML::Perlinfo::Base;
2  
3  
4 5 ▶use HTML::Perlinfo::Common;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use HTML::Perlinfo::General;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub new {
11 4 ▶ my ($class, %params) = @_;
Subroutine new: called CC=3 SCAR=11.1
Pod undocumented
12 4 my $self = {};
13 4 $self->{htmlstart} = 1;
14 4 $self->{full_page} = 1;
15 4 $self->{title} = 0;
16 4 $self->{bg_image} = '';
17 4 $self->{bg_position} = 'center';
18 4 $self->{bg_repeat} = 'no_repeat';
19 4 $self->{bg_attribute} = 'fixed';
20 4 $self->{bg_color} = '#ffffff';
21 4 $self->{ft_family} = 'sans-serif';
22 4 $self->{ft_color} = '#000000';
23 4 $self->{lk_color} = '#000099';
24 4 $self->{lk_decoration} = 'none';
25 4 $self->{lk_bgcolor} = '';
26 4 $self->{lk_hvdecoration} = 'underline';
27 4 $self->{header_bgcolor} = '#9999cc';
28 4 $self->{header_ftcolor} = '#000000';
29 4 $self->{leftcol_bgcolor} = '#ccccff';
30 4 $self->{leftcol_ftcolor} = '#000000';
31 4 $self->{rightcol_bgcolor} = '#cccccc';
32 4 $self->{rightcol_ftcolor} = '#000000';
33  
34 4 foreach my $key (keys %params) {
35 0 ▶ if (exists $self->{$key}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->{$key}) { } 0 0 0
36 0 $self->{$key} = $params{$key};
37 }
38 else {
39 0 error_msg("$key is an invalid attribute");
40 }
41 }
42  
43 4 bless $self, $class;
44 4 return $self;
45
46 }
47  
48 sub info_all {
49 0 ▶ my $self = shift;
Subroutine info_all: not called CC=9 SCAR=45.0
Pod undocumented
50 0 my %param = @_;
51 0 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 0 0
Condition0%0/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
000
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
000
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table0%0/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
52 0 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 0 0
53 0 my $html;
54 0 ▶ $self->{title} = 'perlinfo(INFO_ALL)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 0 0 0
55 0 ▶ $html .= $self->print_htmlhead() if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
56 0 $html .= print_general();
57 0 $html .= print_variables();
58 0 $html .= print_thesemodules('core');
59 0 $html .= print_license();
60 0 ▶ $html .= "</div></body></html>" if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
61 0 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 0 0
62 }
63 sub info_general {
64 1 ▶ my $self = shift;
Subroutine info_general: called CC=9 SCAR=26.0
Pod undocumented
65 1 my %param = @_;
66 1 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 1 1
Condition33%2/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
100
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
100
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table25%1/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
67 1 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 1 1
68 1 my $html = "";
69 1 ▶ $self->{title} = 'perlinfo(INFO_GENERAL)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 1 0 1
70 1 ▶ $html .= $self->print_htmlhead() if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
71 1 $html .= print_general('top');
72 1 ▶ $html .= "</div></body></html>" if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
73 1 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 1 1
74 }
75  
76 sub info_loaded {
77  
78 0 ▶my $self = shift;
Subroutine info_loaded: not called CC=5 SCAR=34.0
Pod undocumented
79 0 ▶$self->{'title'} = 'perlinfo(INFO_LOADED)' unless $self->{'title'};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 0 0 0
80 0 my $html;
81 0 ▶$html .= $self->print_htmlhead() if $self->{'full_page'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
82 0 $html .= print_general();
83 0 delete $INC{'HTML/Perlinfo.pm'};
84 0 $html .= print_thesemodules('loaded',[values %INC]);
85 0 $html .= print_variables();
86 0 ▶$html .= '</div></body></html>' if $self->{'full_page'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
87 0 ▶defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 0 0
88  
89 =pod
90 eval qq{
91  
92 END {
93 delete \$INC{'HTML/Perlinfo.pm'};
94 \$html .= print_thesemodules('loaded',[values %INC]);
95 \$html .= print_variables();
96 \$html .= '</div></body></html>' if \$self->{'full_page'};
97 print \$html;
98 }
99  
100 }; die $@ if $@;
101 =cut;
102 }
103  
104 sub info_modules {
105 0 ▶ my $self = shift;
Subroutine info_modules: not called CC=9 SCAR=45.0
Pod undocumented
106 0 my %param = @_;
107 0 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 0 0
Condition0%0/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
000
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
000
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table0%0/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
108 0 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 0 0
109 0 my $html;
110 0 ▶ $self->{title} = 'perlinfo(INFO_MODULES)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 0 0 0
111 0 ▶ $html .= $self->print_htmlhead() if $self->{'full_page'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
112 0 $html .= print_thesemodules('all');
113 0 ▶ $html .= "</div></body></html>" if $self->{'full_page'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
114 0 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 0 0
115 }
116 sub info_config {
117 1 ▶ my $self = shift;
Subroutine info_config: called CC=9 SCAR=26.0
Pod undocumented
118 1 my %param = @_;
119 1 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 1 1
Condition33%2/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
100
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
100
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table25%1/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
120 1 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 1 1
121 1 my $html;
122 1 ▶ $self->{title} = 'perlinfo(INFO_CONFIG)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 1 0 1
123 1 ▶ $html .= $self->print_htmlhead() if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
124 1 $html .= print_config('info_config');
125 1 ▶ $html .= "</div></body></html>" if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
126 1 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 1 1
127 }
128 sub info_apache {
129 0 ▶ my $self = shift;
Subroutine info_apache: not called CC=10 SCAR=47.0
Pod undocumented
130 0 my %param = @_;
131 0 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 0 0
Condition0%0/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
000
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
000
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table0%0/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
132 0 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 0 0
133 0 my $html;
134 0 ▶ $self->{title} = 'perlinfo(INFO_APACHE)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 0 0 0
135 0 ▶ $html .= $self->print_htmlhead() if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
136 0 ▶ $html .= print_httpd() if print_httpd();
Branch: 1 branch
BranchTrueFalseTotal
if print_httpd() 0 0 0
137 0 ▶ $html .= "</div></body></html>" if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 0 0 0
138 0 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 0 0
139 }
140 sub info_variables {
141 1 ▶ my $self = shift;
Subroutine info_variables: called CC=9 SCAR=26.0
Pod undocumented
142 1 my %param = @_;
143 1 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 1 1
Condition33%2/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
100
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
100
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table25%1/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
144 1 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 1 1
145 1 my $html;
146 1 ▶ $self->{title} = 'perlinfo(INFO_VARIABLES)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 1 0 1
147 1 ▶ $html .= $self->print_htmlhead() if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
148 1 $html .= print_variables();
149 1 ▶ $html .= "</div></body></html>" if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
150 1 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 1 1
151 }
152  
153 sub info_license {
154 1 ▶ my $self = shift;
Subroutine info_license: called CC=9 SCAR=26.0
Pod undocumented
155 1 my %param = @_;
156 1 ▶ error_msg("invalid parameter") if (defined $_[0] && exists $param{'links'} && ref $param{'links'} ne 'ARRAY');
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY" 0 1 1
Condition33%2/6
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
!ll&&!rl&&r
100
defined $_[0] and exists $param{"links"}
!ll&&!rl&&r
100
MC/DC0%0/3
defined $_[0] and exists $param{"links"} and ref $param{"links"} ne "ARRAY"
defined $_[0] exists $param{"links"} ref $param{"links"} ne "ARRAY"
Truth table25%1/4
A and B and C
A= defined $_[0]B= exists $param{"links"}C= ref $param{"links"} ne "ARRAY"
ABCresult
0XX0
10X0
1100
1111
157 1 ▶ $self->links(@{$param{'links'}}) if exists $param{'links'};
Branch: 1 branch
BranchTrueFalseTotal
if exists $param{"links"} 0 1 1
158 1 my $html;
159 1 ▶ $self->{title} = 'perlinfo(INFO_LICENSE)' unless $self->{title};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"title"} 1 0 1
160 1 ▶ $html .= $self->print_htmlhead() if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
161 1 $html .= print_license();
162 1 ▶ $html .= "</div></body></html>" if $self->{full_page};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"full_page"} 1 0 1
163 1 ▶ defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 1 1
164 }
165  
166  
167 sub print_htmlstart {
168 4 ▶ my $html = <<"END_OF_HTML";
Subroutine print_htmlstart: called CC=1 SCAR=0.0
Pod undocumented
169 <?xml version="1.0" encoding="utf-8"?>
170 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
171 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
172 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
173 <head>
174 END_OF_HTML
175 }
176  
177 sub print_htmlhead {
178
179 4 ▶ my $self = shift;
Subroutine print_htmlhead: called CC=4 SCAR=13.9
Pod undocumented
180  
181 4 my $title = $self->{title};
182 4 my $bg_image = $self->{bg_image};
183 4 my $bg_position = $self->{bg_position};
184 4 my $bg_repeat = $self->{bg_repeat};
185 4 my $bg_attribute = $self->{bg_attribute};
186 4 my $bg_color = $self->{bg_color};
187  
188 4 my $ft_family = $self->{ft_family};
189 4 my $ft_color = $self->{ft_color};
190 4 my $lk_color = $self->{lk_color};
191 4 my $lk_decoration = $self->{lk_decoration};
192 4 my $lk_bgcolor = $self->{lk_bgcolor};
193 4 my $lk_hvdecoration = $self->{lk_hvdecoration};
194  
195 4 my $header_bgcolor = $self->{header_bgcolor};
196 4 my $header_ftcolor = $self->{header_ftcolor};
197 4 my $leftcol_bgcolor =$self->{leftcol_bgcolor};
198 4 my $leftcol_ftcolor = $self->{leftcol_ftcolor};
199 4 my $rightcol_bgcolor = $self->{rightcol_bgcolor};
200 4 my $rightcol_ftcolor = $self->{rightcol_ftcolor};
201  
202  
203 4 ▶ my $html = $self->{htmlstart} ? $self->print_htmlstart() : "";
Branch: 1 branch
BranchTrueFalseTotal
$self->{'htmlstart'} ? : 4 0 4
204  
205 4 $html .= <<"END_OF_HTML";
206 <style type="text/css"><!--
207 #perlinfo div {
208 background-color: $bg_color;
209 background-image: url($bg_image);
210 background-position: $bg_position;
211 background-repeat: $bg_repeat;
212 background-attachment: $bg_attribute;
213 color: $ft_color;
214 }
215 #perlinfo table { margin: 0 auto; }
216 #perlinfo td, th, h1, h2 {font-family: $ft_family;}
217 #perlinfo pre {margin: 0px; font-family: monospace;}
218 #perlinfo a:link {color: $lk_color; text-decoration: $lk_decoration; background-color: $lk_bgcolor;}
219 #perlinfo a:hover {text-decoration: $lk_hvdecoration;}
220 #perlinfo table {border-collapse: collapse;}
221 #perlinfo > h1,#perlinfo > h2 {text-align: center;}
222 #perlinfo div.center table { margin-left: auto; margin-right: auto; text-align: left;}
223 #perlinfo div.center th { text-align: center !important; }
224 #perlinfo td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
225 #perlinfo .modules table {border: 0;}
226 #perlinfo .modules td { border:0; font-size: 100%; vertical-align: baseline;}
227 #perlinfo .modules th { border:0; font-size: 100%; vertical-align: baseline;}
228 #perlinfo h1 {font-size: 150%;}
229 #perlinfo h2 {font-size: 125%;}
230 #perlinfo .p {text-align: left;}
231 #perlinfo .e {background-color: $leftcol_bgcolor; font-weight: bold; color: $leftcol_ftcolor;}
232 #perlinfo .h {background-color: $header_bgcolor; font-weight: bold; color: $header_ftcolor;}
233 #perlinfo .v {background-color: $rightcol_bgcolor; color: $rightcol_ftcolor;}
234 #perlinfo i {color: #666666; background-color: #cccccc;}
235 #perlinfo img {float: right; border: 0px;}
236 #perlinfo hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
237 //--></style>
238 END_OF_HTML
239 4 ▶$html .= "<title>$title</title></head><body>" if $self->{htmlstart};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"htmlstart"} 4 0 4
240 4 $html .= '<div id="perlinfo" class="center">';
241  
242 4 ▶defined wantarray ? return $html : print $html;
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 4 0 4
243 }
244  
245 sub links {
246  
247 0 ▶ my $self = shift;
Subroutine links: not called CC=9 SCAR=45.0
Pod undocumented
248 0 my $args = process_args(@_, \&check_args);
249 0 ▶ if (exists $args->{'0'}) {
Branch: 5 branches
BranchTrueFalseTotal
if (exists $args->{'0'}) { } 0 0 0
elsif (exists $args->{'1'}) { } 0 0 0
elsif (exists $args->{'docs'} and not exists $args->{'local'}) { } 0 0 0
elsif (exists $args->{'local'} and not exists $args->{'docs'}) { } 0 0 0
elsif (exists $args->{'docs'} and exists $args->{'local'}) { } 0 0 0
250 0 $HTML::Perlinfo::Common::links{'all'} = 0;
251 }
252 elsif (exists $args->{'1'}) {
253 0 $HTML::Perlinfo::Common::links{'all'} = 1;
254 }
255 ▶ elsif (exists $args->{'docs'} && not exists $args->{'local'}) {
Condition0%0/3
exists $args->{"docs"} and not exists $args->{"local"}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $args->{"docs"} and not exists $args->{"local"}
exists $args->{"docs"} not exists $args->{"local"}
Truth table0%0/3
A and not(B)
A= exists $args->{"docs"}B= not exists $args->{"local"}
ABresult
0X0
100
111
256 0 $HTML::Perlinfo::Common::links{'docs'} = $args->{'docs'};
257 }
258 ▶ elsif (exists $args->{'local'} && not exists $args->{'docs'}) {
Condition0%0/3
exists $args->{"local"} and not exists $args->{"docs"}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $args->{"local"} and not exists $args->{"docs"}
exists $args->{"local"} not exists $args->{"docs"}
Truth table0%0/3
A and not(B)
A= exists $args->{"local"}B= not exists $args->{"docs"}
ABresult
0X0
100
111
259 0 $HTML::Perlinfo::Common::links{'local'} = $args->{'local'};
260 }
261 ▶ elsif (exists $args->{'docs'} && exists $args->{'local'}) {
Condition0%0/3
exists $args->{"docs"} and exists $args->{"local"}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $args->{"docs"} and exists $args->{"local"}
exists $args->{"docs"} exists $args->{"local"}
Truth table0%0/3
A and B
A= exists $args->{"docs"}B= exists $args->{"local"}
ABresult
0X0
100
111
262 $HTML::Perlinfo::Common::links{'docs'} = $args->{'docs'},
263 0 $HTML::Perlinfo::Common::links{'local'} = $args->{'local'},
264 }
265 }
266 5 1;
« Perlinfo/Common.pm ↑ Summary Perlinfo/General.pm »