Branch Coverage

blib/lib/Gherkin/TokenMatcher.pm
Criterion Covered Total %
branch 32 48 66.6


line true false branch
31 36 24 unless (exists $keyword_types->{$keyword})
84 9 6 unless $self->_match_title_line($token, "ScenarioLine", $self->dialect->Scenario)
106 0 3 if ($token->line and $token->line->get_line_text =~ /$LANGUAGE_RE/) { }
120 39 0 unless $token->line and $token->line->startswith("\@")
130 0 45 unless $token->line
133 12 63 if ($token->line->startswith_title_keyword($keyword))
150 21 15 if (defined $options->{'text'})
156 21 15 if defined $options->{'keyword'}
158 9 27 if defined $options->{'keyword_type'}
160 12 24 if (defined $options->{'indent'}) { }
163 21 3 $token->line ? :
167 36 0 if defined $options->{'items'}
175 33 3 unless $token->is_eof
182 12 12 unless $token->line and $token->line->is_empty
189 21 0 unless $token->line and $token->line->startswith("#")
201 0 0 unless $token->line
212 0 0 if ($self->_active_doc_string_separator) { }
227 9 150 if ($line->startswith($keyword))
232 0 9 scalar @{$self->_keyword_types->{$keyword};} > 1 ? :
248 0 15 if ($token->is_eof)
251 15 0 if (not $self->_active_doc_string_separator) { }
262 30 0 unless $token->line->startswith($separator)
265 0 0 if ($is_open) { }
280 15 0 unless $token->line->startswith("|")