Branch Coverage

blib/lib/Gherkin/TokenMatcher.pm
Criterion Covered Total %
branch 30 42 71.4


line true false branch
31 36 24 unless (exists $keyword_types->{$keyword})
77 9 6 unless $self->_match_title_line($token, "ScenarioLine", $self->dialect->Scenario)
99 0 3 if ($token->line->get_line_text =~ /$LANGUAGE_RE/) { }
112 39 0 unless $token->line->startswith("\@")
122 12 63 if ($token->line->startswith_title_keyword($keyword))
139 21 15 if (defined $options->{'text'})
145 21 15 if defined $options->{'keyword'}
147 9 27 if defined $options->{'keyword_type'}
149 12 24 if (defined $options->{'indent'}) { }
152 21 3 $token->line ? :
156 36 0 if defined $options->{'items'}
164 33 3 unless $token->is_eof
171 12 12 unless $token->line->is_empty
178 21 0 unless $token->line->startswith("#")
200 0 0 if ($self->_active_doc_string_separator) { }
215 9 159 if ($line->startswith($keyword))
220 0 9 scalar @{$self->_keyword_types->{$keyword};} > 1 ? :
236 15 0 if (not $self->_active_doc_string_separator) { }
247 30 0 unless $token->line->startswith($separator)
250 0 0 if ($is_open) { }
265 15 0 unless $token->line->startswith("|")