Condition Coverage

blib/lib/Dump/Krumo.pm
Criterion Covered Total %
condition 47 78 60.2


and 3 conditions

line !l l&&!r l&&r condition
117 5 27 2 not $type and is_bool_val($x)
5 17 10 not $type and is_integer($x)
5 16 1 not $type and is_float($x)
5 2 14 not $type and is_string($x)
5 0 2 not $type and is_undef($x)
198 0 0 0 $promote_bool and $class eq "JSON::PP::Boolean"
266 11 0 1 not $printable and length $x < 20
464 13 0 0 is_bool_val($x) and $x
576 12 3 0 length $str == 1 and ord $str >= 127
581 0 2 13 defined $str and $str =~ /^[[:print:]\n\r\t]*$/u
624 2 0 14 defined $value && !($value =~ /^-?\d+(?:\.\d+)?$/u)
629 2 15 10 defined $value && $value =~ /^-?\d+$/u
635 2 14 1 defined $value && $value =~ /^-?\d+\.\d+(e[+-]\d+)?$/u
650 1 0 1 $value == 1 and $value eq 1
651 0 0 1 $value == 0 and $value eq ""
685 0 0 0 defined $fc and int $fc > 255

or 2 conditions

line l !l condition
113 3 45 builtin::blessed($x) || ''
496 0 8 $extra_len //= 0
671 78 36 $txt // ""
689 0 0 $cmd // 0
740 114 0 $_[0] || ''
742 114 0 $Dump::Krumo::COLORS->{$str} // 251

or 3 conditions

line l !l&&r !l&&!r condition
64 2 1 31 $cnt > 1 or $cnt == 0
86 2 1 31 $cnt > 1 or $cnt == 0
669 1 0 0 !$use_color || -t STDOUT == 0
675 0 0 0 not length $str or $str eq "reset"
679 0 0 0 $color_map{$1} // $1
702 0 2 0 not $ENV{'TERM'} or -t STDOUT == 0