Condition Coverage

lib/Yote/Spiderpup/SFC.pm
Criterion Covered Total %
condition 71 129 55.0


and 3 conditions

line !l l&&!r l&&r condition
79 26 1 0 $key eq "recipes" and ref $result->{$key} eq "HASH"
27 0 0 $key eq "recipes" and ref $result->{$key} eq "HASH" and ref $parsed->{$key} eq "HASH"
113 0 1 16 $$pos < $len and substr($text, $$pos, 1) ne "\n"
121 0 1 14 $$pos < $len - 1 and substr($text, $$pos, 2) ne "*/"
176 0 64 355 $$pos < $len and substr($text, $$pos, 1) =~ /[\w\-]/
203 588 0 0 $ch eq "/" and $$pos + 1 < $len
588 0 0 $ch eq "/" and $$pos + 1 < $len and substr($text, $$pos + 1, 1) eq "/"
205 0 0 0 $$pos < $len and substr($text, $$pos, 1) ne "\n"
212 588 0 0 $ch eq "/" and $$pos + 1 < $len
588 0 0 $ch eq "/" and $$pos + 1 < $len and substr($text, $$pos + 1, 1) eq "*"
214 0 0 0 $$pos < $len - 1 and substr($text, $$pos, 2) ne "*/"
234 496 6 4 $ch eq "," and $depth == 0
330 0 2 3 $$pos < $len and substr($text, $$pos, 1) eq ","
352 0 0 19 $$pos < $len and substr($text, $$pos, 1) eq ":"
360 0 11 8 $$pos < $len and substr($text, $$pos, 1) eq ","
386 0 0 16 $$pos < $len and substr($text, $$pos, 1) eq ":"
394 0 12 4 $$pos < $len and substr($text, $$pos, 1) eq ","
421 0 0 1 $$pos < $len and substr($text, $$pos, 1) eq ":"
432 0 1 0 $$pos < $len and substr($text, $$pos, 1) eq ","
455 0 0 2 $$pos < $len and substr($text, $$pos, 1) eq ":"
463 0 1 1 $$pos < $len and substr($text, $$pos, 1) eq ","
514 0 1 22 $pos < $len and substr($text, $pos, 1) eq "{"
522 2 27 22 $has_braces and substr($text, $pos, 1) eq "}"
530 0 0 29 $pos < $len and substr($text, $pos, 1) eq ":"
538 1 21 7 $pos < $len and substr($text, $pos, 1) eq ","

or 2 conditions

line l !l condition
38 0 0 $result->{'recipes'} //= {}
39 0 0 $result->{'recipes'}{$recipe_name} //= {}
41 0 0 $result->{'recipes'}{$recipe_name}{$style_key} // ""
43 0 3 $result->{$style_key} // ""
54 0 2 $result->{'recipes'} //= {}
55 0 2 $result->{'recipes'}{$recipe_name} //= {}
70 1 0 $result->{'recipes'} //= {}
71 1 0 $result->{'recipes'}{$recipe_name} //= {}
82 0 0 $result->{$key}{$rname} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
170 0 3 64 $ch eq "\"" or $ch eq "'"
197 3 5 590 $ch eq "\"" or $ch eq "'"
8 2 588 $ch eq "\"" or $ch eq "'" or $ch eq "`"
221 9 0 579 $ch eq "{" or $ch eq "["
9 26 553 $ch eq "{" or $ch eq "[" or $ch eq "("
226 21 0 532 $ch eq "}" or $ch eq "]"
21 26 506 $ch eq "}" or $ch eq "]" or $ch eq ")"
279 3 14 24 $ch eq "\"" or $ch eq "'"
302 4 0 21 $c eq "," or $c eq "}"
4 0 21 $c eq "," or $c eq "}" or $c eq "]"
0 6 15 $c eq "," or $c eq "}" or $c eq "]" or $c =~ /\s/
309 0 0 9 $raw eq "null" or $raw eq "undefined"