Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/BibTeX.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
89 6 40 if ($self->testDetectChar($text, ",", 0, 0, 0, undef, 0, "#pop", "Normal Text"))
97 6 34 if ($self->testDetectChar($text, "{", 0, 0, 0, undef, 0, "#stay", "Normal Text"))
105 0 34 if ($self->testDetectChar($text, "}", 0, 0, 0, undef, 0, "#stay", "Normal Text"))
112 0 34 if ($self->testRegExpr($text, "\\\\([a-zA-Z]+|.)", 0, 0, 0, undef, 0, "#stay", "Char"))
119 0 34 if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "#pop", "String"))
132 24 562 if ($self->testRegExpr($text, "([a-zA-Z]+)\\s*=", 0, 0, 0, undef, 1, "#stay", "Field"))
139 6 556 if ($self->testKeyword($text, "kw_entry", 0, undef, 0, "Entry", "Entry"))
146 2 554 if ($self->testKeyword($text, "kw_command", 0, undef, 0, "#stay", "Command"))
154 18 536 if ($self->testDetectChar($text, "{", 0, 0, 0, undef, 0, "#stay", "Normal Text"))
162 24 512 if ($self->testDetectChar($text, "}", 0, 0, 0, undef, 0, "#stay", "Normal Text"))
169 0 512 if ($self->testRegExpr($text, "\\\\([a-zA-Z]+|.)", 0, 0, 0, undef, 0, "#stay", "Char"))
176 10 502 if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "String", "String"))
188 0 176 if ($self->testRegExpr($text, "\\\\([a-zA-Z]+|.)", 0, 0, 0, undef, 0, "#stay", "Char"))
195 10 166 if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "#pop", "String"))