Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Yacc_Bison.pm
Criterion Covered Total %
branch 70 106 66.0


line true false branch
146 0 30 if ($self->includeRules('Comment', $text))
156 2 28 if ($self->testDetect2Chars($text, '%', '}', 0, 0, 0, 0, 0, '#pop', 'Content-Type Delimiter'))
161 20 8 if ($self->includePlugin('C++', $text))
173 0 0 if ($self->testRegExpr($text, '\\\\.', 0, 0, 0, undef, 0, '#stay', 'Backslash Code'))
180 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'String Char'))
193 2 766 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'CommentStar', 'Comment'))
201 0 766 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'CommentSlash', 'Comment'))
213 0 0 if ($self->testRegExpr($text, '[^\\\\]$', 0, 0, 0, undef, 0, '#pop', 'Comment'))
226 2 116 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
236 0 266 if ($self->includeRules('Comment', $text))
243 2 264 if ($self->testStringDetect($text, '%union', 0, 0, 0, undef, 0, 'Union Start', 'Directive'))
253 2 262 if ($self->testDetect2Chars($text, '%', '%', 0, 0, 0, undef, 0, 'Rules', 'Content-Type Delimiter'))
263 0 262 if ($self->testDetect2Chars($text, '%', '{', 0, 0, 0, 0, 0, 'C Declarations', 'Content-Type Delimiter'))
270 12 250 if ($self->testDetectChar($text, '%', 0, 0, 0, undef, 0, 'Percent Command', 'Directive'))
282 2 10 if ($self->testRegExpr($text, '<[^>]+>', 0, 0, 0, undef, 0, 'DolEnd', 'Data Type'))
294 4 8 if ($self->testRegExpr($text, '\\d+', 0, 0, 0, undef, 0, '#pop#pop', 'Directive'))
301 8 0 if ($self->testDetectChar($text, '$', 0, 0, 0, undef, 0, '#pop#pop', 'Directive'))
314 0 368 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'Normal C Bloc', 'Normal Text'))
322 6 362 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
327 80 282 if ($self->includePlugin('C++', $text))
334 12 270 if ($self->testDetectChar($text, '$', 0, 0, 0, undef, 0, 'Dol', 'Directive'))
346 10 70 if ($self->testDetectChar($text, '>', 0, 0, 0, undef, 0, '#pop', 'Data Type'))
356 0 76 if ($self->includeRules('Comment', $text))
364 10 66 if ($self->testRegExpr($text, '\\W', 0, 0, 1, undef, 0, 'Percent Command In', 'Normal Text'))
374 8 230 if ($self->includeRules('StringOrChar', $text))
381 10 220 if ($self->testDetectChar($text, '<', 0, 0, 0, undef, 0, 'PC type', 'Data Type'))
391 2 4 if ($self->includeRules('Comment', $text))
395 0 4 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
405 2 2 if ($self->testDetect2Chars($text, '%', '{', 0, 0, 0, 0, 0, 'C Declarations', 'Content-Type Delimiter'))
414 2 0 if ($self->testRegExpr($text, '.', 0, 0, 1, undef, 0, 'Declarations', 'Normal Text'))
424 0 362 if ($self->includeRules('Comment', $text))
432 4 358 if ($self->testDetectChar($text, ';', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
440 6 352 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'Normal C Bloc', 'Normal Text'))
447 2 350 if ($self->testDetectChar($text, '|', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
452 0 350 if ($self->includeRules('StringOrChar', $text))
462 0 26 if ($self->includeRules('Comment', $text))
472 2 24 if ($self->testDetect2Chars($text, '%', '%', 0, 0, 0, undef, 0, 'User Code', 'Content-Type Delimiter'))
480 4 20 if ($self->testDetectChar($text, ':', 0, 0, 0, undef, 0, 'Rule In', 'Normal Text'))
492 0 24 if ($self->testRegExpr($text, '\\\\.', 0, 0, 0, undef, 0, '#stay', 'Backslash Code'))
499 8 16 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
511 0 588 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'Char', 'String Char'))
518 8 580 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
530 0 0 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'Union InIn', 'Normal Text'))
538 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop#pop', 'Normal Text'))
543 0 0 if ($self->includePlugin('C++', $text))
555 0 0 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'Union InIn', 'Normal Text'))
562 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
567 0 0 if ($self->includePlugin('C++', $text))
577 0 2 if ($self->includeRules('Comment', $text))
581 0 2 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
589 0 2 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, 'Union In', 'Normal Text'))
596 2 0 if ($self->testRegExpr($text, '.', 0, 0, 0, undef, 0, '#pop', 'Alert'))
606 32 12 if ($self->includePlugin('C++', $text))