Condition Coverage

blib/lib/Jmespath/Functions.pm
Criterion Covered Total %
condition 102 135 75.5


and 3 conditions

line !l l&&!r l&&r condition
131 21 263 0 defined $left and defined $right
136 24 24 8 ref $left eq 'JSON::PP::Boolean' and ref $right eq 'JSON::PP::Boolean'
147 16 16 11 ref $left eq 'HASH' and ref $right eq 'HASH'
154 8 8 8 ref $left eq 'ARRAY' and ref $right eq 'ARRAY'
160 29 0 87 &looks_like_number($left) and &looks_like_number($right)
237 15 0 2 jp_type($_) ne 'string' and ref $_ ne 'Jmespath::String'
307 29 3 0 $type ne 'number' and $type ne 'string'
312 3 18 11 &looks_like_number($arg) and $arg > $current_max
313 29 1 2 not &looks_like_number($arg) and $arg gt $current_max
379 29 3 0 $type ne 'number' and $type ne 'string'
382 3 20 9 &looks_like_number($arg) and $arg < $current_min
383 29 3 0 not &looks_like_number($arg) and $arg lt $current_min
407 14 114 0 defined $left and defined $right
411 20 20 8 ref $left eq 'JSON::PP::Boolean' and ref $right eq 'JSON::PP::Boolean'
423 10 10 4 ref $left eq 'HASH' and ref $right eq 'HASH'
430 6 6 4 ref $left eq 'ARRAY' and ref $right eq 'ARRAY'
437 0 0 12 &looks_like_number($left) and &looks_like_number($right)
491 7 12 0 $current_type ne 'string' and $current_type ne 'number'
540 0 5 0 defined $subject and defined $prefix
623 0 0 14 ref $va eq '' and ref $vb eq ''
0 8 6 ref $va eq '' and ref $vb eq '' and $va ne $vb
8 0 0 ref $va eq 'SCALAR' and $va ne $vb
8 0 0 ref $va eq 'ARRAY' and not arrays_equal($va, $vb)
8 0 0 ref $va eq 'HASH' and not hashes_equal($va, $vb)
651 2 0 9 ref $va eq '' and ref $vb eq ''
2 7 2 ref $va eq '' and ref $vb eq '' and $va ne $vb
9 0 0 ref $va eq 'SCALAR' and $va ne $vb
7 2 0 ref $va eq 'ARRAY' and not arrays_equal($va, $vb)
9 0 0 ref $va eq 'HASH' and not hashes_equal($va, $vb)

or 3 conditions

line l !l&&r !l&&!r condition
56 1 1 8 scalar @args < 1 or scalar @args > 1
130 263 0 25 defined $left or defined $right
134 32 24 183 ref $left eq 'JSON::PP::Boolean' or ref $right eq 'JSON::PP::Boolean'
146 27 16 140 ref $left eq 'HASH' or ref $right eq 'HASH'
153 16 8 116 ref $left eq 'ARRAY' or ref $right eq 'ARRAY'
160 0 0 29 &looks_like_number($left) || &looks_like_number($right)
260 1 1 9 &JSON::is_bool($subject) or &looks_like_number($subject)
324 1 1 17 not defined $result or &JSON::is_bool($result)
394 1 1 17 not defined $result or &JSON::is_bool($result)
406 114 0 16 defined $left or defined $right
409 28 20 52 ref $left eq 'JSON::PP::Boolean' or ref $right eq 'JSON::PP::Boolean'
422 14 10 28 ref $left eq 'HASH' or ref $right eq 'HASH'
429 10 6 12 ref $left eq 'ARRAY' or ref $right eq 'ARRAY'
480 1 1 7 not defined $list or ref $list ne 'ARRAY'
524 0 1 42 not defined $evaled or &JSON::is_bool($evaled)
571 0 1 9 jp_type($arg) eq 'object' or jp_type($arg) eq 'array'