Condition Coverage

blib/lib/JQ/Lite/Util/Parsing.pm
Criterion Covered Total %
condition 89 160 55.6


and 3 conditions

line !l l&&!r l&&r condition
33 0 6888 6 defined $text and &is_utf8($text, 1)
43 0 0 22 defined $text and length $text
242 18050 85 101 $in_try and not @stack
18135 0 101 $in_try and not @stack and not defined $string
348 0 0 1933 defined $text and defined $operator
0 0 1933 defined $text and defined $operator and length $operator == 1
405 51 0 0 $prev =~ /[eE]/ and $next =~ /[0-9]/
620 270 1 11 _matches_keyword($copy, $pos, "then") and $depth == 1
271 0 11 _matches_keyword($copy, $pos, "then") and $depth == 1 and $state eq "condition"
623 0 0 11 defined $condition and length $condition
631 269 0 2 _matches_keyword($copy, $pos, "elif") and $depth == 1
269 0 2 _matches_keyword($copy, $pos, "elif") and $depth == 1 and $state eq "then"
646 260 1 8 _matches_keyword($copy, $pos, "else") and $depth == 1
261 0 8 _matches_keyword($copy, $pos, "else") and $depth == 1 and $state eq "then"
694 250 0 1 _matches_keyword($copy, $pos, "then") and $depth > 1
700 250 0 0 _matches_keyword($copy, $pos, "elif") and $depth > 1
706 249 0 1 _matches_keyword($copy, $pos, "else") and $depth > 1
765 0 0 4 @parts >= 2 and @parts <= 3
790 0 0 48 defined $self and ref $self eq "JQ::Lite"
791 0 0 48 defined $name and length $name
805 0 38 9 defined $suffix and $suffix =~ /\S/
866 0 0 5 defined $self and $self->can("run_query")
901 583 0 37 defined $lhs_expr and defined $rhs_expr
905 0 0 37 length $lhs_expr and length $rhs_expr
942 10 513 13 not $copy =~ /\bthen\b/i || $copy =~ /\belse\b/i || $copy =~ /\bend\b/i and $copy =~ /(?:==|!=|>=|<=|>|<|\band\b|\bor\b|\bcontains\b|\bhas\b|\bmatch\b)/
974 0 3 10 $left_is_string and $right_is_string
980 0 0 32 &looks_like_number($left) and &looks_like_number($right)
987 1 0 0 ref $left eq "ARRAY" and ref $right eq "ARRAY"
999 0 0 1 ref $left eq "HASH" and ref $right eq "HASH"
1003 0 0 0 not ref $left and ref $right eq "HASH"
1004 0 0 0 ref $left eq "HASH" and not ref $right
1042 0 0 3 length $text and &looks_like_number($text)

or 2 conditions

line l !l condition
793 48 0 $self->{'_vars'} || {}
874 32 0 $2 // ""
1012 30 0 $label ||= "value"
1073 16 0 $expr //= ""
1077 16 0 $lhs //= ""
1078 16 0 $rhs //= ""
1079 16 0 $op //= "="
1094 16 0 $raw //= ""

or 3 conditions

line l !l&&r !l&&!r condition
75 0 6 198 $char eq "'" or $char eq "\""
93 0 0 20 @stack || defined $string
153 0 1 101 $char eq "'" or $char eq "\""
225 3 333 19026 $char eq "'" or $char eq "\""
235 186 2799 15265 $in_try or @stack
2799 0 15265 $in_try or @stack or defined $string
314 3 336 13233 $char eq "'" or $char eq "\""
382 3 319 15214 $char eq "'" or $char eq "\""
402 51 0 0 $operator eq "+" or $operator eq "-"
459 0 24 157 $char eq "'" or $char eq "\""
498 11 0 2 $@ or ref $decoded
851 0 0 17 not defined $path or $path eq ""
891 58 0 70 $path =~ /\s/ or $path =~ m[[+\-*/]]
942 0 0 526 $copy =~ /\bthen\b/i || $copy =~ /\belse\b/i || $copy =~ /\bend\b/i
969 1 0 45 ref $left or ref $right
973 13 0 32 $left_is_string or $right_is_string