Branch Coverage

lib/Yote/Spiderpup/SFC.pm
Criterion Covered Total %
branch 103 142 72.5


line true false branch
35 1 2 $is_less ? :
36 0 3 if ($attrs =~ /recipe\s*=\s*["']([^"']+)["']/) { }
52 2 4 if ($attrs =~ /recipe\s*=\s*["']([^"']+)["']/) { }
1 3 elsif ($attrs =~ /name\s*=\s*["']([^"']+)["']/) { }
68 1 22 if ($attrs =~ /recipe\s*=\s*["']([^"']+)["']/) { }
79 0 27 if ($key eq 'recipes' and ref $result->{$key} eq 'HASH' and ref $parsed->{$key} eq 'HASH') { }
106 379 394 if (substr($text, $$pos, 1) =~ /\s/)
111 1 393 if (substr($text, $$pos, 2) eq "//")
119 1 392 if (substr($text, $$pos, 2) eq "/*")
124 1 0 if $$pos < $len - 1
143 0 181 if ($ch eq "\\")
147 0 0 if ($$pos < $len)
153 20 161 if ($ch eq $quote)
170 3 64 if ($ch eq "\"" or $ch eq "'")
197 7 588 if ($ch eq "\"" or $ch eq "'" or $ch eq "`")
203 0 0 if ($ch eq "/" and $$pos + 1 < $len and substr($text, $$pos + 1, 1) eq "/")
212 0 0 if ($ch eq "/" and $$pos + 1 < $len and substr($text, $$pos + 1, 1) eq "*")
217 0 0 if $$pos < $len - 1
221 26 553 if ($ch eq "{" or $ch eq "[" or $ch eq "(")
226 26 506 if ($ch eq "}" or $ch eq "]" or $ch eq ")")
227 12 35 if ($depth == 0)
234 4 502 if ($ch eq "," and $depth == 0)
254 0 103 if ($ch eq "\\")
258 10 93 if ($ch eq $quote)
274 0 41 if $$pos >= $len
279 17 24 if ($ch eq "\"" or $ch eq "'")
284 0 24 if ($ch eq "`")
289 2 22 if ($ch eq "[")
294 12 10 if ($ch eq "{")
302 6 15 if $c eq "," or $c eq "}" or $c eq "]" or $c =~ /\s/
307 1 9 if $raw eq "true"
308 0 9 if $raw eq "false"
309 0 9 if $raw eq "null" or $raw eq "undefined"
311 9 0 if ($raw =~ /^-?\d+\.?\d*$/)
324 0 7 if $$pos >= $len
325 2 5 if substr($text, $$pos, 1) eq "]"
330 3 2 if ($$pos < $len and substr($text, $$pos, 1) eq ",")
334 2 0 if $$pos < $len
345 0 31 if $$pos >= $len
346 12 19 if substr($text, $$pos, 1) eq "}"
352 19 0 if ($$pos < $len and substr($text, $$pos, 1) eq ":")
360 8 11 if ($$pos < $len and substr($text, $$pos, 1) eq ",")
364 12 0 if $$pos < $len
379 0 29 if $$pos >= $len
380 13 16 if substr($text, $$pos, 1) eq "}"
386 16 0 if ($$pos < $len and substr($text, $$pos, 1) eq ":")
394 4 12 if ($$pos < $len and substr($text, $$pos, 1) eq ",")
398 13 0 if $$pos < $len
414 0 2 if $$pos >= $len
415 1 1 if substr($text, $$pos, 1) eq "}"
421 1 0 if ($$pos < $len and substr($text, $$pos, 1) eq ":")
427 1 0 if (substr($text, $$pos, 1) eq "{")
432 0 1 if ($$pos < $len and substr($text, $$pos, 1) eq ",")
436 1 0 if $$pos < $len
448 0 3 if $$pos >= $len
449 1 2 if substr($text, $$pos, 1) eq "}"
455 2 0 if ($$pos < $len and substr($text, $$pos, 1) eq ":")
463 1 1 if ($$pos < $len and substr($text, $$pos, 1) eq ",")
467 1 0 if $$pos < $len
478 13 18 if ($FUNCTION_KEYS{$key})
479 13 0 if (substr($text, $$pos, 1) eq "{")
484 12 6 if ($DATA_KEYS{$key})
487 1 5 if ($ARRAY_KEYS{$key})
490 1 4 if ($key eq "recipes")
491 1 0 if (substr($text, $$pos, 1) eq "{")
514 22 1 if ($pos < $len and substr($text, $pos, 1) eq "{")
521 0 51 if $pos >= $len
522 22 29 if $has_braces and substr($text, $pos, 1) eq "}"
525 0 29 unless length $key
530 29 0 if ($pos < $len and substr($text, $pos, 1) eq ":")
538 7 22 if ($pos < $len and substr($text, $pos, 1) eq ",")