Condition Coverage

blib/lib/Data/Dump.pm
Criterion Covered Total %
condition 74 87 85.0


and 3 conditions

line !l l&&!r l&&r condition
120 1185 0 0 $] < 5.008 and $type eq 'SCALAR'
162 9 0 2 defined $out and not @bless
173 2 8 9 $ref && $type eq 'SCALAR'
179 0 3 1 @$idx and $idx->[-1] eq '$'
195 19 4 9 $class and $class eq 'Regexp'
242 1007 2 1 $class and not @$idx
267 7 5 28 $k eq 'SCALAR' and not defined $$gval
365 49 66 579 $nl and $klen_pad > length $key
382 1148 4 14 $class and $ref
413 32 3 6 $ref and @i
35 4 2 $ref and @i and $i[0] eq '$'
417 13 28 5 @i and $i[0] eq '$'
473 104 24 0 @_ > $indent_lim and length $tmp > $Data::Dump::LINEWIDTH || $tmp =~ /\n/
497 0 8 2 length $_ < 16384 and /^(.{2,5}?)\1*\z/s
507 301 1 7 length $_ > 40 and not /\\x\{/
302 4 3 length $_ > 40 and not /\\x\{/ and length $_ > length($_[0]) * 2
513 1 0 2 $Data::Dump::TRY_BASE64 and length $_[0] > $Data::Dump::TRY_BASE64
0 1 1 defined &utf8::is_utf8 and not utf8::is_utf8($_[0])
1 1 1 $Data::Dump::TRY_BASE64 and length $_[0] > $Data::Dump::TRY_BASE64 and (defined &utf8::is_utf8 and not utf8::is_utf8($_[0]))
1 0 1 $Data::Dump::TRY_BASE64 and length $_[0] > $Data::Dump::TRY_BASE64 and (defined &utf8::is_utf8 and not utf8::is_utf8($_[0])) and eval { do { require MIME::Base64 } }

or 3 conditions

line l !l&&r !l&&!r condition
69 10 3 98 %Data::Dump::refcnt or %Data::Dump::require
190 1021 12 131 $type eq 'SCALAR' or $type eq 'REF'
1033 9 122 $type eq 'SCALAR' or $type eq 'REF' or $type eq 'REGEXP'
333 14 0 40 length $tmp > $Data::Dump::LINEWIDTH or $tmp =~ /\n/
14 1 39 length $tmp > $Data::Dump::LINEWIDTH or $tmp =~ /\n/ or $tied
424 4 3 28 $i eq '*' or $i eq '$'
452 2 35 279 $v eq '0' or $v =~ /^-?[1-9]\d{0,9}\z/
473 0 0 24 length $tmp > $Data::Dump::LINEWIDTH || $tmp =~ /\n/
1 0 128 $comment or @_ > $indent_lim and length $tmp > $Data::Dump::LINEWIDTH || $tmp =~ /\n/