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
117 0 14 1 $value_spec->{'type'} and $value_spec->{'type'} eq "path"
125 0 13 1 $value_spec->{'type'} and $value_spec->{'type'} eq "expression"
133 0 0 0 defined $self and $self->can("run_query")
166 0 0 12 exists $cursor->{$key} and defined $cursor->{$key}
496 54 2 8 ref $segment && JSON::PP::is_bool($segment)
499 52 8 2 ref $segment and not $is_boolean
517 1 0 13 not $@ and defined $decoded
519 1 10 1 @$decoded and ref $decoded->[0] eq "ARRAY"
539 0 7 0 @$output and ref $output->[0] eq "ARRAY"
594 1 0 9 not $@ and defined $decoded
596 0 8 0 @$decoded and ref $decoded->[0] eq "ARRAY"
614 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 //= "="
118 1 0 $value_spec->{'value'} // ""
126 1 0 $value_spec->{'value'} // ""
207 20 0 $path //= ""
491 43 0 $caller //= "getpath"
510 14 0 $expr //= ""
565 10 0 $paths_expr //= ""

or 3 conditions

line l !l&&r !l&&!r condition
86 0 0 0 $numeric < 0 or $numeric > $cursor->$#*
457 2 0 3 not ref $value or JSON::PP::is_bool($value)
613 0 0 0 not ref $output or JSON::PP::is_bool($output)
799 3 2 6 ref $child eq "HASH" or ref $child eq "ARRAY"
812 0 0 4 ref $child eq "HASH" or ref $child eq "ARRAY"
830 0 1 0 ref $child eq "HASH" or ref $child eq "ARRAY"
845 1 0 0 ref $child eq "HASH" or ref $child eq "ARRAY"