Condition Coverage

blib/lib/String/Print.pm
Criterion Covered Total %
condition 83 147 56.4


and 3 conditions

line !l l&&!r l&&r condition
116 17 1 1 @_ and $_[0] eq "oo"
167 5 0 0 @_ == 1 && ref $_[0] eq 'HASH'
249 0 6 8 defined $value and @parts
250 1 0 6 ref $value and builtin::reftype($value) eq "HASH"
326 0 0 0 not $max and $width
0 0 0 not $max and $width and $width <= $s->columns
330 0 0 0 $max and $s->columns > $max
336 3 4 6 not $max and $width
7 5 1 not $max and $width and $width <= length $s
337 9 0 3 $max and length $s > $max
369 0 0 41 defined $value and length $value
391 0 0 19 defined $value and length $value
398 1 13 18 @scale > 1 and $value > 999
418 5 0 0 builtin::blessed($value) and $value->isa("DateTime")
423 2 0 3 $value =~ /^\s*([0-9]{4})\s*$/ and $1 < 2200
441 9 0 0 builtin::blessed($value) and $value->isa("DateTime")
465 4 0 0 builtin::blessed($value) and $value->isa("DateTime")
484 1 0 0 builtin::blessed($value) and $value->isa("DateTime")
501 7 0 5 defined $value and length $value
512 0 0 10 defined $value and length $value
552 0 0 16 defined $value and length $value

or 2 conditions

line l !l condition
97 3 31 $args->{'serializers'} || {}
104 0 34 $args->{'missing_key'} || \&String::Print::_reportMissingKey
153 2 0 $def{'exclude'} || []
191 4 158 $args->{'_join'} //= ", "
470 1 1 $3 || 0
651 10 17 $width || ''

or 3 conditions

line l !l&&r !l&&!r condition
127 16 0 2 $all or $func{'printi'}
128 16 1 1 $all or $func{'sprinti'}
129 16 0 2 $all or $func{'printp'}
130 16 2 0 $all or $func{'sprintp'}
250 0 1 0 index($value, ":") != -1 or $main::main::{$value . '::'}
301 3 0 1 $pkg->isa(__PACKAGE__) or $pkg->isa("Log::Report::Minimal::Domain")
385 23 2 2 $3 // $defaults->{'thousands'}
437 3 6 0 ($format =~ /^DATE\(([^)]*)\)/ ? $1 : undef) || $defaults->{'format'}
438 2 7 0 $date_format{$kind} // $kind
441 7 1 1 $value =~ m[^\s*([0-9]{4})[:/.-]([0-9]?[0-9])[:/.-]([0-9]?[0-9])\s*$] or $value =~ /^\s*([0-9]{4})([0-9][0-9])([0-9][0-9])\s*$/
470 2 0 2 $value =~ /^\s*(0?[0-9]|1[0-9]|2[0-3])\:([0-5]?[0-9])(?:\:([0-5]?[0-9]))?\s*$/ or $value =~ /^\s*(0[0-9]|1[0-9]|2[0-3])([0-5][0-9])(?:([0-5][0-9]))?\s*$/
490 0 1 0 ($format =~ /^DT\(([^)]*)\)/ ? $1 : undef) || $defaults->{'format'}
491 0 1 0 $dt_format{$kind} // $kind
516 9 1 0 $1 // $args->{'width'}
1 2 0 ($1 // $args->{'width'}) // $defaults->{'width'}
517 10 0 0 $2 // $args->{'units'}
0 1 6 ($2 // $args->{'units'}) // $defaults->{'units'}
556 12 4 0 $1 // $args->{'width'}
7 1 0 ($1 // $args->{'width'}) // $defaults->{'width'}
557 16 0 0 $2 // $args->{'replace'}
0 12 0 ($2 // $args->{'replace'}) // $defaults->{'replace'}
584 10 0 0 $1 // $args->{'width'}
0 6 0 ($1 // $args->{'width'}) // $defaults->{'width'}
589 0 8 0 $args->{'trim'} // $defaults->{'trim'}