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)
166 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') { }
187 0 0 $media_type eq '' ? :
232 0 0 unless ($header)
237 0 0 unless ($rule_line)
245 0 0 if ($background)
275 0 0 $examples_table ? :
286 0 0 $rows ? :
0 0 $rows ? :
299 0 3 unless ($header)
304 0 3 unless ($feature_line)
312 3 0 if ($background)