| line |
true |
false |
branch |
|
54
|
0 |
59 |
unless @_ |
|
65
|
242 |
0 |
unless $Data::Dump::Color::COLOR |
|
69
|
0 |
0 |
if (defined $item) |
|
72
|
0 |
0 |
if (length $ansi) { } |
|
91
|
0 |
3 |
if @Data::Dump::Color::FILTERS |
|
107
|
0 |
3 |
if (%Data::Dump::Color::require) |
|
113
|
1 |
2 |
if (%Data::Dump::Color::refcnt) |
|
118
|
1 |
0 |
if ($Data::Dump::Color::refcnt{$name}) |
|
132
|
0 |
3 |
if $paren |
|
133
|
0 |
3 |
if $paren |
|
136
|
2 |
1 |
defined $_->[1] ? : |
|
137
|
2 |
1 |
defined $_->[1] ? : |
|
142
|
0 |
3 |
if $paren |
|
143
|
0 |
3 |
if $paren |
|
145
|
1 |
2 |
if (%Data::Dump::Color::refcnt or %Data::Dump::Color::require) |
|
154
|
0 |
3 |
unless defined wantarray |
|
182
|
15 |
54 |
$ref ? : |
|
192
|
0 |
69 |
if ((my $i = rindex($strval, '=')) >= 0) |
|
196
|
69 |
0 |
if ((my $i = index($strval, '(0x')) >= 0) { } |
|
203
|
0 |
69 |
if ($] < 5.008 and $type eq 'SCALAR') |
|
204
|
0 |
0 |
if $ref eq 'REF' |
|
206
|
0 |
69 |
if $Data::Dump::Color::DEBUG |
|
212
|
0 |
69 |
if (@Data::Dump::Color::FILTERS) |
|
214
|
0 |
0 |
if $pclass |
|
218
|
0 |
0 |
if (my $f = &$filter($ctx, $rval)) |
|
219
|
0 |
0 |
if (my $v = $f->{'object'}) |
|
224
|
0 |
0 |
if (defined(my $c = $f->{'bless'})) |
|
227
|
0 |
0 |
if (my $c = $f->{'comment'}) |
|
230
|
0 |
0 |
if (defined(my $c = $f->{'dump'})) |
|
235
|
0 |
0 |
if (my $h = $f->{'hide_keys'}) |
|
236
|
0 |
0 |
if (ref $h eq 'ARRAY') |
|
239
|
0 |
0 |
if $k eq $_[0] |
|
247
|
0 |
0 |
if defined $out and not @bless |
|
248
|
0 |
0 |
if (@bless) |
|
250
|
0 |
0 |
if @bless |
|
254
|
69 |
0 |
unless ($dont_remember) |
|
255
|
1 |
68 |
if (my $s = $Data::Dump::Color::seen{$id}) |
|
260
|
0 |
1 |
if $Data::Dump::Color::DEBUG |
|
261
|
0 |
1 |
unless $sname eq $name |
|
267
|
0 |
1 |
if @$idx and $idx->[-1] eq '$' |
|
279
|
0 |
68 |
if ($class) |
|
284
|
0 |
68 |
if (defined $out) { } |
|
|
54 |
14 |
elsif ($type eq 'SCALAR' or $type eq 'REF' or $type eq 'REGEXP') { } |
|
|
0 |
14 |
elsif ($type eq 'GLOB') { } |
|
|
3 |
11 |
elsif ($type eq 'ARRAY') { } |
|
|
11 |
0 |
elsif ($type eq 'HASH') { } |
|
|
0 |
0 |
elsif ($type eq 'CODE') { } |
|
|
0 |
0 |
elsif ($type eq 'VSTRING') { } |
|
288
|
0 |
54 |
if ($ref) { } |
|
289
|
0 |
0 |
if ($class and $class eq 'Regexp') { } |
|
293
|
0 |
0 |
if ($v =~ /^\(\?\^?([msix-]*):([\x00-\xFF]*)\)\z/) |
|
301
|
0 |
0 |
if ($sep_count) |
|
306
|
0 |
0 |
if ($c < $sep_count) |
|
309
|
0 |
0 |
if $sep_count == 0 |
|
320
|
0 |
0 |
if $type eq 'SCALAR' |
|
322
|
0 |
0 |
$class ? : |
|
323
|
0 |
0 |
$class ? : |
|
326
|
0 |
54 |
if (not defined $$rval) { } |
|
|
11 |
43 |
elsif (my $ntype = &looks_like_number($$rval)) { } |
|
331
|
11 |
0 |
if ($lan_available) { } |
|
335
|
6 |
5 |
$ntype < 20 ? : |
|
336
|
4 |
7 |
$ntype =~ /^(5|13|8704)$/ ? : |
|
350
|
0 |
54 |
if ($class and not @$idx) |
|
361
|
0 |
0 |
if ($ref) { } |
|
366
|
0 |
0 |
if ($out =~ /^\\\*Symbol::/) |
|
378
|
0 |
0 |
unless defined $gval |
|
379
|
0 |
0 |
if $k eq 'SCALAR' and not defined $$gval |
|
416
|
0 |
11 |
if ($hide_keys) |
|
421
|
10 |
2 |
unless /^[-+]?(?:0|[1-9]\d*)(?:\.\d+)?\z/ |
|
424
|
10 |
1 |
if ($text_keys) { } |
|
433
|
57 |
2 |
if $key =~ /^-?[a-zA-Z_]\w*\z/ |
|
434
|
2 |
0 |
if $key =~ /^-?[1-9]\d{0,8}\z/ |
|
443
|
0 |
59 |
if $quote |
|
444
|
33 |
26 |
if length $key > $kstat_max |
|
464
|
0 |
0 |
if (length $tmp > 60 or $tmp =~ /\n/ or $tied) |
|
468
|
1 |
10 |
if ($kstat_max < 4) { } |
|
|
10 |
0 |
elsif (@keys >= 2) { } |
|
477
|
7 |
3 |
if ($stddev / $kstat_max < 0.25) |
|
480
|
0 |
10 |
if ($Data::Dump::Color::DEBUG) |
|
495
|
28 |
31 |
if $klen < $klen_pad |
|
497
|
25 |
34 |
if $maxkvlen < $kvlen |
|
499
|
0 |
11 |
if $maxkvlen > 80 |
|
503
|
0 |
11 |
if $tied |
|
504
|
0 |
11 |
if $tied |
|
515
|
41 |
18 |
$klen_pad ? : |
|
518
|
59 |
0 |
$nl ? : |
|
520
|
18 |
41 |
if ($pad_len < 0) |
|
521
|
59 |
0 |
if $nl |
|
522
|
10 |
49 |
$vmultiline ? : |
|
525
|
59 |
0 |
if $Data::Dump::Color::INDEX |
|
526
|
0 |
59 |
if defined $origk and length $origk >= $Data::Dump::Color::LENTHRESHOLD |
|
527
|
0 |
59 |
if defined $origv and length $origv >= $Data::Dump::Color::LENTHRESHOLD |
|
528
|
59 |
0 |
$nl && length $visaid ? : |
|
529
|
59 |
0 |
$nl && length $visaid ? : |
|
532
|
0 |
11 |
unless $nl |
|
533
|
0 |
11 |
unless $nl |
|
542
|
0 |
0 |
$ref ? : |
|
551
|
0 |
68 |
if ($class and $ref) |
|
555
|
0 |
68 |
if ($comment) |
|
557
|
0 |
0 |
unless $comment =~ /\n\z/ |
|
567
|
0 |
14 |
if ($tied) |
|
568
|
0 |
0 |
if (my $tied_ref = ref $tied) { } |
|
586
|
0 |
0 |
if ($ref and @i and $i[0][0] eq '$') |
|
598
|
0 |
2 |
if ($i->[0] eq '*' or $i->[0] eq '$') { } |
|
|
0 |
2 |
elsif ($i->[0] =~ s/^\*//) { } |
|
613
|
0 |
2 |
if $ref |
|
623
|
3 |
3 |
$paren ? : |
|
628
|
1 |
5 |
if (@vals > 3) |
|
636
|
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/) { } |
|
647
|
1 |
0 |
if $vals[$j] ne $v |
|
650
|
0 |
4 |
if ($j - $i > 3) |
|
659
|
0 |
6 |
if ($comment or @vals > $indent_lim and length $tmp > 60 || $tmp =~ /\n/) { } |
|
665
|
0 |
0 |
if $maxvlen < $lenvfirstline |
|
667
|
0 |
0 |
if $maxvlen > 80 |
|
670
|
0 |
0 |
$comment ? : |
|
671
|
0 |
0 |
$comment ? : |
|
681
|
0 |
0 |
if $Data::Dump::Color::INDEX |
|
682
|
0 |
0 |
if defined $orig[$i] and length $orig[$i] >= $Data::Dump::Color::LENTHRESHOLD |
|
683
|
0 |
0 |
length $visaid ? : |
|
684
|
0 |
0 |
length $visaid ? : |
|
693
|
3 |
40 |
if (length $_[0] > 20) |
|
696
|
0 |
3 |
if (/^(.)\1\1\1/s) |
|
699
|
0 |
0 |
unless (/[^\Q$1\E]/) |
|
706
|
0 |
3 |
if (length $_ < 16384 and /^(.{2,5}?)\1*\z/s) |
|
716
|
0 |
2 |
if (length $_ > 40 and not /\\x\{/ and length $_ > length($_[0]) * 2) |
|
722
|
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
}
}) |
|
752
|
43 |
0 |
unless /[^\040-\176]/ |