Branch Coverage

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


line true false branch
248 210 362 if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef))
253 0 362 if ($self->includePlugin("Alerts", $text))
257 176 186 if ($self->testDetectIdentifier($text, 0, undef, 0, "#stay", undef))
266 96 126 if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef))
275 18 108 if ($self->testDetect2Chars($text, "*", "/", 0, 0, 0, undef, 0, "#pop", "Comment"))
280 4 104 if ($self->includePlugin("Alerts", $text))
284 58 46 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 1048 2690 if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef))
334 0 2690 if ($self->testRegExpr($text, "#\\s*if\\s+0", 0, 0, 0, undef, 1, "Outscoped", "Preprocessor"))
342 22 2668 if ($self->testDetectChar($text, "#", 0, 0, 0, undef, 1, "Preprocessor", "Preprocessor"))
351 16 2652 if ($self->testStringDetect($text, "//BEGIN", 0, 0, 0, undef, 1, "Region Marker", "Region Marker"))
360 16 2636 if ($self->testStringDetect($text, "//END", 0, 0, 0, undef, 1, "Region Marker", "Region Marker"))
367 146 2490 if ($self->testKeyword($text, "keywords", 0, undef, 0, "#stay", "Keyword"))
374 0 2490 if ($self->testKeyword($text, "extensions", 0, undef, 0, "#stay", "Extensions"))
381 168 2322 if ($self->testKeyword($text, "types", 0, undef, 0, "#stay", "Data Type"))
387 18 2304 if ($self->testHlCChar($text, 0, undef, 0, "#stay", "Char"))
394 36 2268 if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "String", "String"))
398 610 1658 if ($self->testDetectIdentifier($text, 0, undef, 0, "#stay", undef))
405 62 1596 if ($self->testFloat($text, 0, undef, 0, "#stay", "Float"))
410 0 62 if ($self->testAnyChar($text, "fF", 0, 0, undef, 0, "#stay", "Float"))
417 0 1658 if ($self->testHlCOct($text, 0, undef, 0, "#stay", "Octal"))
423 0 1658 if ($self->testHlCHex($text, 0, undef, 0, "#stay", "Hex"))
430 0 1658 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 1652 if ($self->includePlugin("Doxygen", $text))
506 22 1630 if ($self->testDetect2Chars($text, "/", "/", 0, 0, 0, undef, 0, "Commentar 1", "Comment"))
515 18 1612 if ($self->testDetect2Chars($text, "/", "*", 0, 0, 0, undef, 0, "Commentar 2", "Comment"))
523 44 1568 if ($self->testDetectChar($text, "{", 0, 0, 0, undef, 0, "#stay", "Symbol"))
531 44 1524 if ($self->testDetectChar($text, "}", 0, 0, 0, undef, 0, "#stay", "Symbol"))
538 1364 160 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"))