| line |
true |
false |
branch |
|
55
|
0 |
59 |
unless @_ |
|
72
|
256 |
0 |
unless $Data::Dump::Color::COLOR |
|
74
|
0 |
0 |
unless defined $ct_obj |
|
78
|
0 |
0 |
if (defined $item) |
|
81
|
0 |
0 |
if (length $ansi) { } |
|
96
|
0 |
8 |
if $Data::Dump::Color::COLOR and not defined $ct_obj |
|
97
|
0 |
8 |
if @Data::Dump::Color::FILTERS |
|
113
|
0 |
8 |
if (%Data::Dump::Color::require) |
|
119
|
1 |
7 |
if (%Data::Dump::Color::refcnt) |
|
124
|
1 |
0 |
if ($Data::Dump::Color::refcnt{$name}) |
|
138
|
0 |
8 |
if $paren |
|
139
|
0 |
8 |
if $paren |
|
142
|
7 |
1 |
defined $_->[1] ? : |
|
143
|
7 |
1 |
defined $_->[1] ? : |
|
148
|
0 |
8 |
if $paren |
|
149
|
0 |
8 |
if $paren |
|
151
|
1 |
7 |
if (%Data::Dump::Color::refcnt or %Data::Dump::Color::require) |
|
160
|
0 |
8 |
unless defined wantarray |
|
189
|
21 |
59 |
$ref ? : |
|
199
|
1 |
79 |
if ((my $i = rindex($strval, "=")) >= 0) |
|
203
|
80 |
0 |
if ((my $i = index($strval, '(0x')) >= 0) { } |
|
210
|
0 |
80 |
if ($] < "5.008" and $type eq "SCALAR") |
|
211
|
0 |
0 |
if $ref eq "REF" |
|
213
|
0 |
80 |
if $Data::Dump::Color::DEBUG |
|
219
|
0 |
80 |
if (@Data::Dump::Color::FILTERS) |
|
221
|
0 |
0 |
if $pclass |
|
225
|
0 |
0 |
if (my $f = &$filter($ctx, $rval)) |
|
226
|
0 |
0 |
if (my $v = $f->{'object'}) |
|
231
|
0 |
0 |
if (defined(my $c = $f->{'bless'})) |
|
234
|
0 |
0 |
if (my $c = $f->{'comment'}) |
|
237
|
0 |
0 |
if (defined(my $c = $f->{'dump'})) |
|
242
|
0 |
0 |
if (my $h = $f->{'hide_keys'}) |
|
243
|
0 |
0 |
if (ref $h eq "ARRAY") |
|
246
|
0 |
0 |
if $k eq $_[0] |
|
254
|
0 |
0 |
if defined $out and not @bless |
|
255
|
0 |
0 |
if (@bless) |
|
257
|
0 |
0 |
if @bless |
|
261
|
80 |
0 |
unless ($dont_remember) |
|
262
|
1 |
79 |
if (my $s = $Data::Dump::Color::seen{$id}) |
|
267
|
0 |
1 |
if $Data::Dump::Color::DEBUG |
|
268
|
0 |
1 |
unless $sname eq $name |
|
274
|
0 |
1 |
if @$idx and $idx->[-1] eq "\$" |
|
286
|
1 |
78 |
if ($class) |
|
291
|
0 |
79 |
if (defined $out) { } |
|
|
62 |
17 |
elsif ($type eq 'SCALAR' or $type eq 'REF' or $type eq 'REGEXP') { } |
|
|
0 |
17 |
elsif ($type eq 'GLOB') { } |
|
|
6 |
11 |
elsif ($type eq 'ARRAY') { } |
|
|
11 |
0 |
elsif ($type eq 'HASH') { } |
|
|
0 |
0 |
elsif ($type eq 'CODE') { } |
|
|
0 |
0 |
elsif ($type eq 'VSTRING') { } |
|
295
|
3 |
59 |
if ($ref) { } |
|
296
|
0 |
3 |
if ($class and $class eq 'Regexp') { } |
|
300
|
0 |
0 |
if ($v =~ /^\(\?\^?([msix-]*):([\x00-\xFF]*)\)\z/) |
|
308
|
0 |
0 |
if ($sep_count) |
|
313
|
0 |
0 |
if ($c < $sep_count) |
|
316
|
0 |
0 |
if $sep_count == 0 |
|
327
|
2 |
1 |
if $type eq "SCALAR" |
|
329
|
1 |
2 |
$class ? : |
|
330
|
1 |
2 |
$class ? : |
|
333
|
0 |
59 |
if (not defined $$rval) { } |
|
|
16 |
43 |
elsif (my $ntype = &looks_like_number($$rval)) { } |
|
338
|
16 |
0 |
if ($lan_available) { } |
|
342
|
6 |
10 |
$ntype < 20 ? : |
|
343
|
4 |
12 |
$ntype =~ /^(5|13|8704)$/ ? : |
|
357
|
0 |
59 |
if ($class and not @$idx) |
|
368
|
0 |
0 |
if ($ref) { } |
|
373
|
0 |
0 |
if ($out =~ /^\\\*Symbol::/) |
|
385
|
0 |
0 |
unless defined $gval |
|
386
|
0 |
0 |
if $k eq "SCALAR" and not defined $$gval |
|
423
|
0 |
11 |
if ($hide_keys) |
|
428
|
10 |
2 |
unless /^[-+]?(?:0|[1-9]\d*)(?:\.\d+)?\z/ |
|
431
|
10 |
1 |
if ($text_keys) { } |
|
440
|
57 |
2 |
if $key =~ /^-?[a-zA-Z_]\w*\z/ |
|
441
|
2 |
0 |
if $key =~ /^-?[1-9]\d{0,8}\z/ |
|
450
|
0 |
59 |
if $quote |
|
451
|
33 |
26 |
if length $key > $kstat_max |
|
471
|
0 |
0 |
if (length $tmp > 60 or $tmp =~ /\n/ or $tied) |
|
475
|
1 |
10 |
if ($kstat_max < 4) { } |
|
|
10 |
0 |
elsif (@keys >= 2) { } |
|
484
|
7 |
3 |
if ($stddev / $kstat_max < "0.25") |
|
487
|
0 |
10 |
if ($Data::Dump::Color::DEBUG) |
|
502
|
28 |
31 |
if $klen < $klen_pad |
|
504
|
25 |
34 |
if $maxkvlen < $kvlen |
|
506
|
0 |
11 |
if $maxkvlen > 80 |
|
510
|
0 |
11 |
if $tied |
|
511
|
0 |
11 |
if $tied |
|
522
|
41 |
18 |
$klen_pad ? : |
|
525
|
59 |
0 |
$nl ? : |
|
527
|
18 |
41 |
if ($pad_len < 0) |
|
528
|
59 |
0 |
if $nl |
|
529
|
10 |
49 |
$vmultiline ? : |
|
532
|
59 |
0 |
if $Data::Dump::Color::INDEX |
|
533
|
0 |
59 |
if defined $origk and length $origk >= $Data::Dump::Color::LENTHRESHOLD |
|
534
|
0 |
59 |
if defined $origv and length $origv >= $Data::Dump::Color::LENTHRESHOLD |
|
535
|
59 |
0 |
$nl && length $visaid ? : |
|
536
|
59 |
0 |
$nl && length $visaid ? : |
|
539
|
0 |
11 |
unless $nl |
|
540
|
0 |
11 |
unless $nl |
|
549
|
0 |
0 |
$ref ? : |
|
558
|
1 |
78 |
if ($class and $ref) |
|
562
|
0 |
79 |
if ($comment) |
|
564
|
0 |
0 |
unless $comment =~ /\n\z/ |
|
574
|
0 |
17 |
if ($tied) |
|
575
|
0 |
0 |
if (my $tied_ref = ref $tied) { } |
|
593
|
0 |
0 |
if ($ref and @i and $i[0][0] eq "\$") |
|
605
|
0 |
2 |
if ($i->[0] eq '*' or $i->[0] eq '$') { } |
|
|
0 |
2 |
elsif ($i->[0] =~ s/^\*//) { } |
|
620
|
0 |
2 |
if $ref |
|
630
|
6 |
8 |
$paren ? : |
|
635
|
1 |
13 |
if (@vals > 3) |
|
643
|
1 |
2 |
if ($v eq '0' or $v =~ /^-?[1-9]\d{0,9}\z/) { } |
|
|
0 |
2 |
elsif ($v =~ /^"([A-Za-z]{1,3}\d*)"\z/) { } |
|
654
|
1 |
0 |
if $vals[$j] ne $v |
|
657
|
0 |
4 |
if ($j - $i > 3) |
|
666
|
0 |
14 |
if ($comment or @vals > $indent_lim and length $tmp > 60 || $tmp =~ /\n/) { } |
|
672
|
0 |
0 |
if $maxvlen < $lenvfirstline |
|
674
|
0 |
0 |
if $maxvlen > 80 |
|
677
|
0 |
0 |
$comment ? : |
|
678
|
0 |
0 |
$comment ? : |
|
688
|
0 |
0 |
if $Data::Dump::Color::INDEX |
|
689
|
0 |
0 |
if defined $orig[$i] and length $orig[$i] >= $Data::Dump::Color::LENTHRESHOLD |
|
690
|
0 |
0 |
length $visaid ? : |
|
691
|
0 |
0 |
length $visaid ? : |
|
700
|
3 |
40 |
if (length $_[0] > 20) |
|
703
|
0 |
3 |
if (/^(.)\1\1\1/s) |
|
706
|
0 |
0 |
unless (/[^\Q$1\E]/) |
|
713
|
0 |
3 |
if (length $_ < 16384 and /^(.{2,5}?)\1*\z/s) |
|
723
|
0 |
2 |
if (length $_ > 40 and not /\\x\{/ and length $_ > length($_[0]) * 2) |
|
729
|
0 |
0 |
if ($Data::Dump::Color::TRY_BASE64 and length $_[0] > $Data::Dump::Color::TRY_BASE64 and (defined &utf8::is_utf8 and not utf8::is_utf8($_[0])) and eval {
do {
require MIME::Base64
}
}) |
|
759
|
45 |
0 |
unless /[^\040-\176]/ |