Branch Coverage

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


line true false branch
79 0 6 unless defined $code
132 6 6 unless defined $type
143 6 6 if ($type =~ /^autorun$/) { }
175 0 6 unless defined $paragraphs and ref $paragraphs
185 0 7 unless $recipe_name =~ /^[ ]*([\-\w][\- \w]*)\.[ ]*$/
189 0 7 unless @$paragraphs
193 4 3 if ($comments =~ /^[ ]*Ingredients\.[ ]*\n/) { }
197 0 3 unless @$paragraphs
202 0 7 unless @$paragraphs
207 0 7 if ($cooking_time =~ /^[ ]*Cooking time:[ ]*(\d+)(?: hours?| minutes?)\.[ ]*$/) { }
209 0 0 unless @$paragraphs
218 0 7 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 7 unless $method =~ /^[ ]*Method\.[ ]*\n/
233 4 3 if (@$paragraphs)
235 4 0 if ($serves =~ /^[ ]*Serves (\d+)\.[ ]*$/) { }