Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Cplusplus.pm
Criterion Covered Total %
branch 67 140 47.8


line true false branch
248 38 558 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
253 0 558 if ($self->includePlugin('Alerts', $text))
257 172 386 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
266 4 230 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
275 18 212 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
280 4 208 if ($self->includePlugin('Alerts', $text))
284 58 150 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
293 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
301 0 0 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
305 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
316 0 0 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Preprocessor'))
325 72 4918 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
334 0 4918 if ($self->testRegExpr($text, '#\\s*if\\s+0', 0, 0, 0, undef, 1, 'Outscoped', 'Preprocessor'))
342 22 4896 if ($self->testDetectChar($text, '#', 0, 0, 0, undef, 1, 'Preprocessor', 'Preprocessor'))
351 16 4880 if ($self->testStringDetect($text, '//BEGIN', 0, 0, 0, undef, 1, 'Region Marker', 'Region Marker'))
360 16 4864 if ($self->testStringDetect($text, '//END', 0, 0, 0, undef, 1, 'Region Marker', 'Region Marker'))
367 134 4730 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword'))
374 0 4730 if ($self->testKeyword($text, 'extensions', 0, undef, 0, '#stay', 'Extensions'))
381 156 4574 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Data Type'))
387 18 4556 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Char'))
394 36 4520 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
398 606 3914 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
405 32 3882 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float'))
410 0 32 if ($self->testAnyChar($text, 'fF', 0, 0, undef, 0, '#stay', 'Float'))
417 0 3914 if ($self->testHlCOct($text, 0, undef, 0, '#stay', 'Octal'))
423 0 3914 if ($self->testHlCHex($text, 0, undef, 0, '#stay', 'Hex'))
430 0 3914 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
436 0 0 if ($self->testStringDetect($text, 'ULL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
444 0 0 if ($self->testStringDetect($text, 'LUL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
452 0 0 if ($self->testStringDetect($text, 'LLU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
460 0 0 if ($self->testStringDetect($text, 'UL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
468 0 0 if ($self->testStringDetect($text, 'LU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
476 0 0 if ($self->testStringDetect($text, 'LL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
484 0 0 if ($self->testStringDetect($text, 'U', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
492 0 0 if ($self->testStringDetect($text, 'L', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
498 6 3908 if ($self->includePlugin('Doxygen', $text))
506 22 3886 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Commentar 1', 'Comment'))
515 18 3868 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
523 44 3824 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
531 44 3780 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
538 1338 2442 if ($self->testAnyChar($text, ':!%&()+,-/.*<=>?[]{|}~^;', 0, 0, undef, 0, '#stay', 'Symbol'))
547 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
552 0 0 if ($self->includePlugin('Alerts', $text))
556 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
563 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
568 0 0 if ($self->includePlugin('Doxygen', $text))
576 0 0 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Commentar 1', 'Comment'))
585 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
594 0 0 if ($self->testRegExpr($text, '#\\s*if', 0, 0, 0, undef, 1, 'Outscoped intern', 'Comment'))
603 0 0 if ($self->testRegExpr($text, '#\\s*(endif|else|elif)', 0, 0, 0, undef, 1, '#pop', 'Preprocessor'))
612 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
617 0 0 if ($self->includePlugin('Alerts', $text))
621 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
628 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
633 0 0 if ($self->includePlugin('Doxygen', $text))
641 0 0 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Commentar 1', 'Comment'))
650 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
659 0 0 if ($self->testRegExpr($text, '#\\s*if', 0, 0, 0, undef, 1, 'Outscoped intern', 'Comment'))
668 0 0 if ($self->testRegExpr($text, '#\\s*endif', 0, 0, 0, undef, 1, '#pop', 'Comment'))
679 0 166 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Preprocessor'))
686 0 166 if ($self->testRegExpr($text, 'define.*((?=\\\\))', 0, 0, 0, undef, 0, 'Define', 'Preprocessor'))
693 4 162 if ($self->testRegExpr($text, 'define.*', 0, 0, 0, undef, 0, '#stay', 'Preprocessor'))
701 6 156 if ($self->testRangeDetect($text, '"', '"', 0, 0, undef, 0, '#stay', 'Prep. Lib'))
709 12 144 if ($self->testRangeDetect($text, '<', '>', 0, 0, undef, 0, '#stay', 'Prep. Lib'))
714 0 144 if ($self->includePlugin('Doxygen', $text))
722 0 144 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Commentar 1', 'Comment'))
730 0 144 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar/Preprocessor', 'Comment'))
746 0 322 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'String'))
752 6 316 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
759 32 284 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))