web/cgi-bin/yatt.lib/YATT/Util.pm

filter: Statementstmt 98.8% 2150 / 2176 Branchbran 52.0% 306 / 588 Conditioncond 58.5% 24 / 41 MC/DCmcdc 36.0% 9 / 25 Subroutinesub 99.7% 414 / 415 Podpod 0.0% 0 / 23 totaltotal 88.8% 2903 / 3268 CC 326 SCAR 8.0
CC
326
Cov
88%
_handle_arg_desc
37.8
resume
14.0
decode_args
12.1
CRAP 2.2
« misc/cpan/MyBuilder.pm ↑ Summary web/cgi-bin/yatt.lib/YATT/LRXML/MetaInfo.pm »
1 # -*- mode: perl; coding: utf-8 -*-
2 package YATT::Util;
3 14 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 14 ▶use warnings qw(FATAL all NONFATAL misc);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 14 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 14 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 14 ▶use YATT::Util::Taint;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 14 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
13 our @EXPORT_OK
14 14 = qw(&catch
15 &rootname
16 &optional
17 &try_can
18  
19 &require_and
20 &call_type
21 &load_type
22  
23 &default
24 &defined_fmt
25 &coalesce
26 &numeric
27  
28 &lsearch
29 &escape
30 &decode_args
31 &named_attr
32 &attr
33 &resume
34  
35 &checked
36 &checked_eval
37 &terse_dump
38  
39 &add_arg_order_in
40  
41 &copy_array
42  
43 &line_info
44 &needs_line_info
45 );
46 14 our @EXPORT = @EXPORT_OK;
47 }
48  
49 13 ▶sub catch (&@) {
Subroutine catch: called CC=1 SCAR=0.0
Pod undocumented
50 13 my ($sub, $errorVar) = @_;
51 13 eval { $sub->() };
52 13 $$errorVar = $@;
53 }
54  
55 3 ▶sub rootname {
Subroutine rootname: called CC=2 SCAR=7.1
Pod undocumented
56 3 ▶ push @_, qr{\.\w+$} unless @_ > 1;
Branch: 1 branch
BranchTrueFalseTotal
unless @_ > 1 2 0 2
57 3 my ($basename, $dirname, $suffix) = fileparse(@_);
58 3 join "", $dirname, $basename;
59 }
60  
61 1 ▶sub optional {
Subroutine optional: called CC=2 SCAR=8.1
Pod undocumented
62 1 my ($hash, $member, $key) = @_;
63 1 ▶ defined (my $value = $hash->{$member}) or return;
Branch: 1 branch
BranchTrueFalseTotal
defined(my $value = $hash->{$member}) or return 0 0 0
64 1 ($key, $value);
65 }
66  
67 1 ▶sub try_can {
Subroutine try_can: called CC=2 SCAR=8.1
Pod undocumented
68 1 my ($obj, $method) = splice @_, 0, 2;
69 1 ▶ my $sub = $obj->can($method) or return;
Branch: 1 branch
BranchTrueFalseTotal
my $sub = $obj->can($method) or return 0 0 0
70 1 $sub->($obj, @_);
71 }
72  
73 740 ▶sub load_type {
Subroutine load_type: called CC=5 SCAR=16.4
Pod undocumented
74 740 my ($self, $typealias, $method) = @_;
75 740 my $realclass = $self->$typealias();
76 740 ▶ unless ($realclass->can($method || 'new')) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($realclass->can($method || "new")) 8 731 739
Condition50%1/2
$method || 'new'
l!l
7390
MC/DC0%0/1
$method || 'new'
$method
Truth table50%1/2
A
A= $method
Aresult
11
00
77 9 eval "require $realclass";
78 9 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 8 8
79 9 ▶ if (my $break = YATT->can("break_\l$typealias")) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $break = "YATT"->can("break_\l$typealias")) 8 0 8
80 9 $break->();
81 }
82 }
83 740 $realclass;
84 }
85  
86 740 ▶sub call_type {
Subroutine call_type: called CC=1 SCAR=0.0
Pod undocumented
87 740 my ($self, $typealias, $method) = splice @_, 0, 3;
88 740 my $realclass = load_type($self, $typealias, $method);
89 740 $realclass->$method(@_);
90 }
91  
92 26 ▶sub require_and {
Subroutine require_and: called CC=3 SCAR=11.8
Pod undocumented
93 26 my ($class) = shift;
94 26 my $method = shift;
95 26 ▶ unless ($class->can($method)) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($class->can($method)) 0 25 25
96 1 eval "require $class";
97 1 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
98 }
99 26 $class->$method(@_);
100 }
101  
102 255 ▶sub coalesce {
Subroutine coalesce: called CC=3 SCAR=11.0
Pod undocumented
103 255 foreach my $item (@_) {
104 431 ▶ return $item if defined $item;
Branch: 1 branch
BranchTrueFalseTotal
if defined $item 238 192 430
105 }
106 }
107 15 *default = *coalesce; *default = *coalesce;
108 1 ▶sub numeric {
Subroutine numeric: called CC=1 SCAR=0.0
Pod undocumented
109 1 default(@_, 0);
110 }
111  
112 163 ▶sub defined_fmt ($$$) {
Subroutine defined_fmt: called CC=2 SCAR=6.9
Pod undocumented
113 163 my ($fmt, $value, $default) = @_;
114 163 ▶ unless (defined $value) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $value) { } 23 139 162
115 140 $default;
116 } else {
117 24 sprintf $fmt, $value;
118 }
119 }
120  
121 724 ▶sub lsearch (&$;$) {
Subroutine lsearch: called CC=4 SCAR=13.9
Pod undocumented
122 724 my ($cmp, $list, $i) = @_;
123 724 ▶ $i = 0 unless defined $i;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $i 685 38 723
124 724 foreach (@{$list}[$i .. $#$list]) {
125 1506 ▶ return $i if $cmp->();
Branch: 1 branch
BranchTrueFalseTotal
if &$cmp() 536 969 1505
126 } continue {
127 970 $i++;
128 }
129 return
130 188 }
131  
132 15 my %escape = (qw(< &lt;
133 > &gt;
134 " &quot;
135 & &amp;)
136 , "\'", "&#39;");
137  
138 15 our $ESCAPE_UNDEF = '';
139  
140 177 ▶sub escape {
Subroutine escape: called CC=8 SCAR=20.8
Pod undocumented
141 177 ▶ return if wantarray && !@_;
Branch: 1 branch
BranchTrueFalseTotal
if wantarray and not @_ 1 175 176
Condition100%3/3
wantarray and not @_
!ll&&!rl&&r
11741
MC/DC100%2/2
wantarray and not @_
wantarray not @_
Truth table100%3/3
A and not(B)
A= wantarrayB= not @_
ABresult
0X0
100
111
142 176 my @result;
143 176 foreach my $str (@_) {
144 198 push @result, do {
145 198 ▶ unless (defined $str) {
Branch: 3 branches
BranchTrueFalseTotal
if (defined $str) { } 197 0 197
if (do { ref $str eq 'SCALAR' }) { } 5 192 197
elsif (ref($str) =~ /^YATT::Util::/) { } 2 190 192
146 1 $ESCAPE_UNDEF;
147 } elsif (ref $str eq 'SCALAR') {
148 # PASS Thru. (Already escaped)
149 6 $$str;
150 } elsif (ref($str) =~ /^YATT::Util::/) {
151 # Yet another PASS Thru. (Already escaped)
152 3 $$str;
153 } else {
154 191 my $copy = $str;
155 191 $copy =~ s{([<>&\"\'])}{$escape{$1}}g;
156 191 $copy;
157 }
158 };
159 }
160 176 ▶ wantarray ? @result : $result[0];
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 174 1 175
161 }
162  
163 1 ▶sub _handle_arg_desc {
Subroutine _handle_arg_desc: called CC=9 SCAR=36.3
164 1 my ($desc) = shift;
165 1 ▶ unless (defined $desc->[2]) {
Branch: 4 branches
BranchTrueFalseTotal
if (defined $desc->[2]) { } 0 0 0
if (do { ref $desc->[2] }) { } 0 0 0
elsif ($desc->[2] eq '/') { } 0 0 0
elsif ($desc->[2] eq '|') { } 0 0 0
166 # '?' case.
167 1 ▶ defined $_[0] && $_[0] ne '' ? $_[0] : $desc->[1];
Branch: 1 branch
BranchTrueFalseTotal
defined $_[0] && $_[0] ne '' ? : 0 0 0
Condition0%0/3
defined $_[0] and $_[0] ne ""
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_[0] and $_[0] ne ""
defined $_[0] $_[0] ne ""
Truth table0%0/3
A and B
A= defined $_[0]B= $_[0] ne ""
ABresult
0X0
100
111
168 } elsif (ref $desc->[2]) {
169 # extension.
170 1 $desc->[2]->($desc->[1], $_[0]);
171 } elsif ($desc->[2] eq '/') {
172 1 ▶ defined $_[0] ? $_[0] : $desc->[1];
Branch: 1 branch
BranchTrueFalseTotal
defined $_[0] ? : 0 0 0
173 } elsif ($desc->[2] eq '|') {
174 1 ▶ $_[0] ? $_[0] : $desc->[1];
Branch: 1 branch
BranchTrueFalseTotal
$_[0] ? : 0 0 0
175 } else {
176 1 confess "Invalid arg spec $desc->[2] for $desc->[0]";
177 }
178 }
179  
180 1 ▶sub decode_args {
Subroutine decode_args: called CC=8 SCAR=24.9
Pod undocumented
181 1 my ($args) = shift;
182 1 ▶ unless (defined $args) {
Branch: 2 branches
BranchTrueFalseTotal
if (defined $args) { } 0 0 0
if (do { ref $args eq 'ARRAY' }) { } 0 0 0
183 map {
184 1 ▶ ref $_[$_] eq 'ARRAY' ? $_[$_]->[1] : undef;
Branch: 1 branch
BranchTrueFalseTotal
ref $_[$_] eq 'ARRAY' ? : 0 0 0
185 } 0 .. $#_;
186 } elsif (ref $args eq 'ARRAY') {
187 map {
188 1 ▶ unless (ref $_[$_]) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $_[$_]) { } 0 0 0
189 1 $args->[$_];
190 } else {
191 1 _handle_arg_desc($_[$_], $args->[$_]);
192 }
193 } 0 .. $#_;
194 } else {
195 1 my @args;
196 1 foreach my $desc (@_) {
197 1 push @args, do {
198 1 ▶ unless (ref $desc) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $desc) { } 0 0 0
199 1 delete $args->{$desc};
200 } else {
201 1 _handle_arg_desc($desc, delete $args->{$desc->[0]});
202 }
203 };
204 }
205 1 ▶ if (%$args) {
Branch: 1 branch
BranchTrueFalseTotal
if (%$args) 0 0 0
206 1 my ($pkg, $file, $line) = caller(0);
207 1 die "Invalid args at $file line $line: "
208 . join(", ", sort keys %$args) . "\n";
209 }
210 1 @args;
211 }
212 }
213  
214 3 ▶sub attr {
Subroutine attr: called CC=3 SCAR=11.2
Pod undocumented
215 3 my ($attname) = shift;
216 3 ▶ my @result = grep {defined $_ && $_ ne ''} @_;
Condition66%2/3
defined $_ && $_ ne ''
!ll&&!rl&&r
105
MC/DC50%1/2
defined $_ && $_ ne ''
defined $_ $_ ne ''
Truth table66%2/3
A && B
A= defined $_B= $_ ne ''
ABresult
0X0
100
111
217 3 ▶ return '' unless @result;
Branch: 1 branch
BranchTrueFalseTotal
unless @result 0 2 2
218 3 bless \(sprintf q{ %s="%s"}, $attname, join ' ', @result)
219 , __PACKAGE__ . '::attr';
220 }
221  
222 6 ▶sub named_attr {
Subroutine named_attr: called CC=4 SCAR=14.2
Pod undocumented
223 6 my ($attname, $value, $spc) = @_;
224 6 ▶ return '' unless defined $value && $value ne '';
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value and $value ne "" 1 4 5
Condition66%2/3
defined $value and $value ne ""
!ll&&!rl&&r
014
MC/DC50%1/2
defined $value and $value ne ""
defined $value $value ne ""
Truth table66%2/3
A and B
A= defined $valueB= $value ne ""
ABresult
0X0
100
111
225 5 ▶ sprintf('%s%s="%s"', defined $spc ? $spc : ' '
Branch: 1 branch
BranchTrueFalseTotal
defined $spc ? : 0 4 4
226 , $attname, YATT::escape($value));
227 }
228  
229 {
230 package YATT::Util::attr;
231 14 ▶ use overload qw("" stringify);
Subroutine BEGIN: called CC=1 SCAR=0.0
232 1 ▶ sub stringify {
Subroutine stringify: called CC=1 SCAR=0.0
233 1 ${$_[0]}
234 }
235 }
236  
237 15 ▶sub resume {
Subroutine resume: called CC=7 SCAR=26.4
Pod undocumented
238 1 my ($CGI, $name, $value, $type) = @_;
239 1 ▶ unless (defined $type) {
Branch: 3 branches
BranchTrueFalseTotal
if (defined $type) { } 0 0 0
if (do { $type =~ /^(?:radio|checkbox)$/i }) { } 0 0 0
elsif ($type =~ /^(?:|text|password)$/i) { } 0 0 0
240 1 ""
241 } elsif ($type =~ /^(?:radio|checkbox)$/i) {
242 1 ▶ my $cache = $CGI->{'.RESUME_CACHE'}->{$name} ||= do {
Condition0%0/3
$CGI->{".RESUME_CACHE"}{$name} ||= do { my %cache; $cache{$_} = 1 foreach ($CGI->param($name)); \%cache }
l!l&&r!l&&!r
000
MC/DC0%0/2
$CGI->{".RESUME_CACHE"}{$name} ||= do { my %cache; $cache{$_} = 1 foreach ($CGI->param($name)); \%cache }
$CGI->{".RESUME_CACHE"}{$name} do { my %cache; $cache{$_} = 1 foreach ($CGI->param($name)); \%cache }
Truth table0%0/3
A ||= B
A= $CGI->{".RESUME_CACHE"}{$name}B= do { my %cache; $cache{$_} = 1 foreach ($CGI->param($name)); \%cache }
ABresult
1X1
011
000
243 1 my %cache;
244 1 $cache{$_} = 1 for $CGI->param($name);
245 1 \%cache;
246 };
247 1 ▶ $cache->{$value} ? "checked" : "";
Branch: 1 branch
BranchTrueFalseTotal
$cache->{$value} ? : 0 0 0
248 } elsif ($type =~ /^(?:|text|password)$/i) {
249 1 named_attr(value => scalar $CGI->param($name), ' ');
250 } else {
251 # textarea と select option の selected. (multi もあるでよ)
252 }
253 }
254  
255 55 ▶sub checked {
Subroutine checked: called CC=2 SCAR=7.0
Pod undocumented
256 55 my ($pack, $method, $fmt, $obj) = splice @_, 0, 4;
257 55 my $result = eval {$obj->$method(@_)};
258 55 ▶ if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 54 54
259 1 sprintf $fmt, $@;
260 } else {
261 55 $result;
262 }
263 }
264  
265 440 ▶sub checked_eval {
Subroutine checked_eval: called CC=6 SCAR=18.0
Pod undocumented
266 # $_[0] is ignored.
267 # XXX: local @_ = do { eval $_[1] }; を使えないか?
268 440 ▶ die "Undefined expression" unless defined $_[1];
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[1] 0 439 439
269 440 ▶ croak "Tainted expression" if is_tainted($_[1]);
Branch: 1 branch
BranchTrueFalseTotal
if &is_tainted($_[1]) 0 439 439
270 440 my @___result;
271 440 &YATT::break_eval;
272 440 ▶ if (wantarray) {
Branch: 1 branch
BranchTrueFalseTotal
if (wantarray) { } 0 439 439
273 1 @___result = eval $_[1];
274 } else {
275 0 ▶ $___result[0] = eval $_[1];
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: not called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 245 branches
BranchTrueFalseTotal
$body and &$body() 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 1 2 3
if (ref $args eq 'ARRAY') { } 1 2 3
if (ref $args eq 'ARRAY') { } 3 0 3
defined $args->[0] ? : 1 2 3
if (ref $args eq 'ARRAY') { } 1 2 3
$args->[0] ? : 3 0 3
$args->[1] ? : 2 1 3
if (ref $args eq 'ARRAY') { } 2 1 3
defined $args->[0] && $args->[0] ne '' ? : 3 0 3
defined $args->[1] && $args->[1] ne '' ? : 1 2 3
if (ref $args eq 'ARRAY') { } 0 3 3
defined $args->[0] ? : 1 0 1
defined $args->[1] ? : 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
defined $args->[0] && $args->[0] ne '' ? : 0 1 1
defined $args->[1] && $args->[1] ne '' ? : 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 0 0
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
defined $args->[1] && $args->[1] ne '' ? : 1 0 1
if (ref $args eq 'ARRAY') { } 0 0 0
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 0 0
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 0 1 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
defined $args->[1] && $args->[1] ne '' ? : 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
defined $args->[0] ? : 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 2 0 2
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 3 0 3
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
if (ref $args eq 'ARRAY') { } 1 0 1
$body and &$body() 1 1 2
$body and &$body() 1 1 2
$body and &$body() 1 1 2
$body and &$body() 1 2 3
$body and &$body() 1 1 2
if ($x >= 2) 1 0 1
if ($x >= 2) 1 0 1
if ($x >= 2) { } 1 0 1
if ($x >= 2) { } 1 0 1
elsif ($x < 0) { } 2 0 2
$_ ? : 1 1 2
$_ ? : 1 1 2
$_ ? : 1 1 2
$_ ? : 1 0 1
$body and &$body() 1 0 1
if ($x >= 2) 1 0 1
if ($x >= 2) 1 0 1
if ($x >= 2) { } 1 0 1
$list->[0] || $list->[1] ? : 0 1 1
$list->[0] * $list->[1] == 24 ? : 0 1 1
$list->[0] + $list->[1] == 11 ? : 1 0 1
$_ ? : 1 0 1
defined $_ ? : 1 1 2
$_ ? : 1 0 1
defined $_ ? : 1 0 1
$_ ? : 1 0 1
$_ ? : 1 0 1
$x ? : 1 0 1
$body and &$body("foo") 1 0 1
$title and &$title() 1 0 1
$body and &$body() 1 0 1
$footer and &$footer() 1 0 1
$title and &$title() 1 0 1
$body and &$body() 1 0 1
$footer and &$footer() 1 0 1
$body and &$body() 1 0 1
$body and &$body("foo", "bar") 1 0 1
$body and &$body() 1 0 1
$_ ? : 1 0 1
$_ ? : 1 0 1
$_ ? : 1 0 1
$_ ? : 1 0 1
$_ ? : 2 0 2
$_ ? : 3 0 3
$_ ? : 1 2 3
$_ ? : 1 1 2
$body and &$body() 1 0 1
$body and &$body() 1 0 1
$body and &$body() 1 0 1
if ($x >= 2) { } 1 2 3
elsif ($x < 0) { } 1 1 2
$world and &$world(sub { print "world!"; } ) 1 0 1
$world and &$world(sub { print "Zearth!"; } ) 1 0 1
$world and &$world(sub { print "space!"; } ) 3 0 3
Condition55%10/18
defined $args->[0] and $args->[0] ne ""
!ll&&!rl&&r
111
defined $args->[1] and $args->[1] ne ""
!ll&&!rl&&r
210
defined $args->[0] and $args->[0] ne ""
!ll&&!rl&&r
100
defined $args->[1] and $args->[1] ne ""
!ll&&!rl&&r
100
defined $args->[1] and $args->[1] ne ""
!ll&&!rl&&r
100
defined $args->[1] and $args->[1] ne ""
!ll&&!rl&&r
011
MC/DC100%2/2
defined $args->[0] and $args->[0] ne ""
defined $args->[0] $args->[0] ne ""
MC/DC0%0/2
defined $args->[1] and $args->[1] ne ""
defined $args->[1] $args->[1] ne ""
MC/DC0%0/2
defined $args->[0] and $args->[0] ne ""
defined $args->[0] $args->[0] ne ""
MC/DC0%0/2
defined $args->[1] and $args->[1] ne ""
defined $args->[1] $args->[1] ne ""
MC/DC0%0/2
defined $args->[1] and $args->[1] ne ""
defined $args->[1] $args->[1] ne ""
MC/DC50%1/2
defined $args->[1] and $args->[1] ne ""
defined $args->[1] $args->[1] ne ""
Truth table100%3/3
A and B
A= defined $args->[0]B= $args->[0] ne ""
ABresult
0X0
100
111
Truth table66%2/3
A and B
A= defined $args->[1]B= $args->[1] ne ""
ABresult
0X0
100
111
Truth table33%1/3
A and B
A= defined $args->[0]B= $args->[0] ne ""
ABresult
0X0
100
111
Truth table33%1/3
A and B
A= defined $args->[1]B= $args->[1] ne ""
ABresult
0X0
100
111
Truth table0%0/3
A and B
A= defined $args->[1]B= $args->[1] ne ""
ABresult
0X0
100
111
Truth table66%2/3
A and B
A= defined $args->[1]B= $args->[1] ne ""
ABresult
0X0
100
111
276 }
277 440 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 1 438 439
278 439 ▶ wantarray ? @___result : $___result[0];
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 438 438
279 }
280  
281 69 ▶sub terse_dump {
Subroutine terse_dump: called CC=1 SCAR=0.0
Pod undocumented
282 69 require Data::Dumper;
283 join ", ", map {
284 69 Data::Dumper->new([$_])->Terse(1)->Indent(0)->Dump;
285 } @_;
286 }
287  
288 493 ▶sub copy_array {
Subroutine copy_array: called CC=3 SCAR=11.0
Pod undocumented
289 493 my $arg = shift;
290 493 ▶ unless (ref $arg) {
Branch: 2 branches
BranchTrueFalseTotal
if (ref $arg) { } 149 345 494
if (do { ref $arg eq 'ARRAY' }) { } 146 1 147
291 347 return $arg
292 } elsif (ref $arg eq 'ARRAY') {
293 148 [map {copy_array($_)} @$arg]
294 } else {
295 2 croak "Not an array ref: $arg";
296 }
297 }
298  
299 431 ▶sub add_arg_order_in {
Subroutine add_arg_order_in: called CC=4 SCAR=13.9
Pod undocumented
300 431 ▶ my $argDict = $_[0] ||= {};
Condition100%3/3
$_[0] ||= {}
l!l
417141
MC/DC100%1/1
$_[0] ||= {}
$_[0]
Truth table100%2/2
A
A= $_[0]
Aresult
11
00
301 431 ▶ my $argOrder = $_[1] ||= [];
Condition100%3/3
$_[1] ||= []
l!l
2451861
MC/DC100%1/1
$_[1] ||= []
$_[1]
Truth table100%2/2
A
A= $_[1]
Aresult
11
00
302 431 my ($name, $arg) = splice @_, 2;
303  
304 croak "Duplicate argument definition: '$name'"
305 431 ▶ if defined $argDict->{$name};
Branch: 1 branch
BranchTrueFalseTotal
if defined $argDict->{$name} 1 429 430
306  
307 431 $arg->configure(argno => scalar keys %$argDict, varname => $name);
308 431 push @$argOrder, $name;
309 431 $argDict->{$name} = $arg;
310  
311 431 $arg;
312 }
313  
314 28 ▶sub is_debug {
Subroutine is_debug: called CC=2 SCAR=6.9
Pod undocumented
315 28 my $db = $main::{"DB::"};
316 28 ▶ defined $db and defined ${*{$db}{HASH}}{sub};
Branch: 1 branch
BranchTrueFalseTotal
defined $db and defined do { *{$db;}{"HASH"} }->{"sub"} 26 1 27
317 }
318  
319 28 ▶sub no_lineinfo {
Subroutine no_lineinfo: called CC=2 SCAR=7.6
Pod undocumented
320 28 ▶ is_debug() and not $ENV{DEBUG_DETAIL};
Branch: 1 branch
BranchTrueFalseTotal
is_debug() and not $ENV{"DEBUG_DETAIL"} 27 0 27
321 }
322  
323 14 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=6.9
324 # check if DB::sub exists.
325 14 ▶ if (no_lineinfo()) {
Branch: 1 branch
BranchTrueFalseTotal
if (no_lineinfo()) { } 13 0 13
326 14 *needs_line_info = sub () { 0 };
327 14 ▶ *line_info = sub {""};
Subroutine __ANON__: called CC=1 SCAR=0.0
328 14 require Scalar::Util;
329 2 ▶ *put_debuginfo = sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
330 2 my ($pack, $fn) = splice @_, 0, 2;
331 4 @{$main::{"_<$fn"}} = (undef, map {
332 2 Scalar::Util::dualvar(1, $_);
333 } split /(?<=\n)/, $_[0]);
334 14 };
335 } else {
336 1 *needs_line_info = sub () { 1 };
337 2 ▶ *line_info = sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
338 4 my ($offset) = @_;
339 2 my ($pack, $file, $line) = caller;
340 2 sprintf(qq|#line %d "%s"\n|, $line + $offset, $file)
341 1 };
342 1 ▶ *put_debuginfo = sub () {};
Subroutine __ANON__: called CC=1 SCAR=0.0
343 }
344 }
345  
346 15 1;
« misc/cpan/MyBuilder.pm ↑ Summary web/cgi-bin/yatt.lib/YATT/LRXML/MetaInfo.pm »