Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Clipper.pm
Criterion Covered Total %
branch 66 96 68.7


line true false branch
492 6 108 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
499 0 108 if ($self->testRegExpr($text, '(FIXME|TODO|NOT(IC)?E)', 0, 0, 0, undef, 0, '#stay', 'Command'))
510 0 36 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Eval Block'))
517 2 34 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'Eval Block'))
529 0 194 if ($self->testRegExpr($text, '(FIXME|TODO|NOT(IC)?E)', 0, 0, 0, undef, 0, '#stay', 'Command'))
543 6 1334 if ($self->testRegExpr($text, '\\bfunction\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
552 6 1328 if ($self->testRegExpr($text, '^return\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
561 0 1328 if ($self->testRegExpr($text, '\\bbegin\\s+sequence\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
570 0 1328 if ($self->testRegExpr($text, '\\bend\\s+sequence\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
579 0 1328 if ($self->testRegExpr($text, '\\bdo\\s+case\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
588 0 1328 if ($self->testRegExpr($text, '\\bendcase\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
597 0 1328 if ($self->testRegExpr($text, '\\bdo\\s+while\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
606 0 1328 if ($self->testRegExpr($text, '\\benddo\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
615 0 1328 if ($self->testRegExpr($text, '\\bfor\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
624 0 1328 if ($self->testRegExpr($text, '\\bnext\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
633 4 1324 if ($self->testRegExpr($text, '\\bif\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
643 0 1324 if ($self->testRegExpr($text, '\\belseif\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
653 2 1322 if ($self->testRegExpr($text, '\\belse\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
662 4 1318 if ($self->testRegExpr($text, '\\bendif\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
671 0 1318 if ($self->testRegExpr($text, '\\bswitch\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
680 0 1318 if ($self->testRegExpr($text, '\\bendswitch\\b', 1, 0, 0, undef, 0, '#stay', 'Keyword'))
687 14 1304 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword'))
694 10 1294 if ($self->testKeyword($text, 'commands', 0, undef, 0, '#stay', 'Command'))
701 2 1292 if ($self->testKeyword($text, 'functions', 0, undef, 0, '#stay', 'Function'))
707 0 1292 if ($self->testHlCHex($text, 0, undef, 0, '#stay', 'String Char'))
714 12 1280 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
722 0 1280 if ($self->testRegExpr($text, '//\\s*BEGIN.*$', 0, 0, 0, undef, 0, '#stay', 'Region Marker'))
730 2 1278 if ($self->testRegExpr($text, '//\\s*END.*$', 0, 0, 0, undef, 0, '#stay', 'Region Marker'))
738 10 1268 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'LineComment', 'Comment'))
745 0 1268 if ($self->testRegExpr($text, '^\\s*\\*.*$', 0, 0, 0, undef, 0, 'LineComment', 'Comment'))
754 6 1262 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'BlockComment', 'Comment'))
761 238 1024 if ($self->testAnyChar($text, '!%&()+,-<:=>[]^~', 0, 0, undef, 0, '#stay', 'Symbol'))
768 6 1018 if ($self->testRegExpr($text, '#', 0, 0, 0, undef, 0, 'Preprocessor', 'Preprocessor'))
776 2 1016 if ($self->testDetect2Chars($text, '{', '|', 0, 0, 0, undef, 0, 'EvalBlock', 'Eval Block'))
783 0 1016 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'String2', 'String'))
794 0 74 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Preprocessor'))
802 4 70 if ($self->testRangeDetect($text, '"', '"', 0, 0, undef, 0, '#stay', 'Prep. Lib'))
810 2 68 if ($self->testRangeDetect($text, '<', '>', 0, 0, undef, 0, '#stay', 'Prep. Lib'))
818 0 68 if ($self->testRegExpr($text, '//\\s*BEGIN.*$', 0, 0, 0, undef, 0, '#stay', 'Region Marker'))
826 0 68 if ($self->testRegExpr($text, '//\\s*END.*$', 0, 0, 0, undef, 0, '#stay', 'Region Marker'))
834 0 68 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'LineComment', 'Comment'))
843 0 68 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'BlockComment', 'Comment'))
854 0 216 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'String'))
860 4 212 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
867 12 200 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
878 0 0 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'String'))
884 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
891 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'String'))