Branch Coverage

blib/lib/Acme/Chef/Recipe.pm
Criterion Covered Total %
branch 48 66 72.7


line true false branch
463 89 7 if (ref $proto)
471 89 0 if ($$self{'compiled'})
519 0 53 unless $$self{'compiled'}
532 8 2520 if $return eq 'halt'
534 36 2484 if ($return =~ /^recurse\.([\-\w][\-\w ]*)/) { }
624 1860 elsif ($return =~ /^loop\.([^\.]+)\.([^\.]+)/) { }
576 1284 elsif ($return =~ /^endloop\.([^\.]+)/) { }
0 1284 elsif ($return =~ /^break/) { }
535 0 36 unless exists $$recipes{$1}
557 45 579 unless ($$self{'ingredients'}{$ingr}->value)
573 45 2475 if $exec_pos > $max_pos
576 17 36 if ($$self{'serves'})
578 0 26 if $serve > $#{$$self{'dishes'};}
611 0 0 defined $ingredient ? :
0 0 defined $sub ? :
0 144 unless defined $ingredient and exists $$self{'ingredients'}{$ingredient}
628 36 53 if @_
644 149 17 if @{$$self{'bowls'};} >= $no
665 7 9 if @{$$self{'dishes'};} >= $no
683 0 13 if @_
699 0 7 if $$self{'compiled'}
705 0 7 unless @ingredients
714 43 1 if (s/^[ ]*(\d+)[ ]//) { }
722 0 88 if (s/^\Q$type\E[ ]//)
730 32 506 if $meas eq ''
732 16 490 if (s/^\Q$meas\E[ ]//)
739 0 44 unless /[ ]*([\-\w][\- \w]*)[ ]*$/
767 1124 183 unless @res
769 5 178 if ($res[0] eq 'verb') { }
5 173 elsif ($res[0] eq 'until_verbed') { }
776 0 5 unless exists $$self{'loops'}{$verb}
786 0 183 unless ref $step eq 'ARRAY'
790 0 7 if (grep {not exists $$self{'loops'}{$_}{'end'};} keys %{$$self{'loops'};})