Branch Coverage

blib/lib/Acme/Chef.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
79 0 9 unless defined $code
132 9 9 unless defined $type
143 9 9 if ($type =~ /^autorun$/) { }
175 0 9 unless defined $paragraphs and ref $paragraphs
185 0 10 unless $recipe_name =~ /^[ ]*([\-\w][\- \w]*)\.[ ]*$/
189 0 10 unless @$paragraphs
193 5 5 if ($comments =~ /^[ ]*Ingredients\.[ ]*\n/) { }
197 0 5 unless @$paragraphs
202 0 10 unless @$paragraphs
207 0 10 if ($cooking_time =~ /^[ ]*Cooking time:[ ]*(\d+)(?: hours?| minutes?)\.[ ]*$/) { }
209 0 0 unless @$paragraphs
218 0 10 if ($temperature =~ /^[ ]*Pre-heat oven to (\d+) degrees Celsius(?: gas mark (\d+))?\.[ ]*$/) { }
220 0 0 if defined $2
221 0 0 unless @$paragraphs
229 0 10 unless $method =~ /^[ ]*Method\.[ ]*\n/
233 7 3 if (@$paragraphs)
235 7 0 if ($serves =~ /^[ ]*Serves (\d+)\.[ ]*$/) { }