Condition Coverage

blib/lib/JQ/Lite/Util/Paths.pm
Criterion Covered Total %
condition 41 83 49.4


and 3 conditions

line !l l&&!r l&&r condition
13 0 1 15 defined $path and length $path
24 0 0 6 defined $current_num and defined $value_num
56 0 0 6 defined $path and length $path
113 0 14 1 $value_spec->{'type'} and $value_spec->{'type'} eq "path"
121 0 13 1 $value_spec->{'type'} and $value_spec->{'type'} eq "expression"
129 0 0 0 defined $self and $self->can("run_query")
162 0 0 12 exists $cursor->{$key} and defined $cursor->{$key}
499 54 2 8 ref $segment && JSON::PP::is_bool($segment)
502 52 8 2 ref $segment and not $is_boolean
520 1 0 13 not $@ and defined $decoded
522 1 10 1 @$decoded and ref $decoded->[0] eq "ARRAY"
542 0 7 0 @$output and ref $output->[0] eq "ARRAY"
597 1 0 9 not $@ and defined $decoded
599 0 8 0 @$decoded and ref $decoded->[0] eq "ARRAY"
617 0 5 0 @$output and ref $output->[0] eq "ARRAY"
0 5 0 @$output && ref $output->[0]

or 2 conditions

line l !l condition
15 15 0 $operator //= "="
114 1 0 $value_spec->{'value'} // ""
122 1 0 $value_spec->{'value'} // ""
210 20 0 $path //= ""
494 43 0 $caller //= "getpath"
513 14 0 $expr //= ""
568 10 0 $paths_expr //= ""

or 3 conditions

line l !l&&r !l&&!r condition
82 0 0 0 $numeric < 0 or $numeric > $cursor->$#*
460 2 0 3 not ref $value or JSON::PP::is_bool($value)
616 0 0 0 not ref $output or JSON::PP::is_bool($output)
802 3 2 6 ref $child eq "HASH" or ref $child eq "ARRAY"
815 0 0 4 ref $child eq "HASH" or ref $child eq "ARRAY"
833 0 1 0 ref $child eq "HASH" or ref $child eq "ARRAY"
848 1 0 0 ref $child eq "HASH" or ref $child eq "ARRAY"