Branch Coverage

blib/lib/Gherkin/AstBuilder.pm
Criterion Covered Total %
branch 20 50 40.0


line true false branch
58 0 36 if ($token->matched_type eq 'Comment') { }
78 0 21 unless $token
124 0 0 unless @{$rows;}
130 0 0 unless defined $cell_count
131 0 0 unless ($cell_count == $this_row_count)
167 9 24 if ($node->rule_type eq 'Step') { }
0 24 elsif ($node->rule_type eq 'DocString') { }
0 24 elsif ($node->rule_type eq 'DataTable') { }
3 21 elsif ($node->rule_type eq 'Background') { }
6 15 elsif ($node->rule_type eq 'ScenarioDefinition') { }
0 15 elsif ($node->rule_type eq 'Rule') { }
0 15 elsif ($node->rule_type eq 'ExamplesDefinition') { }
0 15 elsif ($node->rule_type eq 'Description') { }
3 12 elsif ($node->rule_type eq 'Feature') { }
3 9 elsif ($node->rule_type eq 'GherkinDocument') { }
188 0 0 $media_type eq '' ? :
233 0 0 unless ($header)
238 0 0 unless ($rule_line)
246 0 0 if ($background)
276 0 0 $examples_table ? :
287 0 0 $rows ? :
0 0 $rows ? :
300 0 3 unless ($header)
305 0 3 unless ($feature_line)
313 3 0 if ($background)