Branch Coverage

blib/lib/Gherkin/TokenMatcher.pm
Criterion Covered Total %
branch 31 46 67.3


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 and $token->line->get_line_text =~ /$LANGUAGE_RE/) { }
113 39 0 unless $token->line and $token->line->startswith("\@")
123 0 45 unless $token->line
126 12 63 if ($token->line->startswith_title_keyword($keyword))
143 21 15 if (defined $options->{'text'})
149 21 15 if defined $options->{'keyword'}
151 9 27 if defined $options->{'keyword_type'}
153 12 24 if (defined $options->{'indent'}) { }
156 21 3 $token->line ? :
160 36 0 if defined $options->{'items'}
168 33 3 unless $token->is_eof
175 12 12 unless $token->line and $token->line->is_empty
182 21 0 unless $token->line and $token->line->startswith("#")
194 0 0 unless $token->line
205 0 0 if ($self->_active_doc_string_separator) { }
220 9 159 if ($line->startswith($keyword))
225 0 9 scalar @{$self->_keyword_types->{$keyword};} > 1 ? :
241 15 0 if (not $self->_active_doc_string_separator) { }
252 30 0 unless $token->line->startswith($separator)
255 0 0 if ($is_open) { }
270 15 0 unless $token->line->startswith("|")