Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/LPC.pm
Criterion Covered Total %
branch 60 76 78.9


line true false branch
143 4 1034 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Single-Line comments'))
150 2 1032 if ($self->testKeyword($text, 'attention', 0, undef, 0, '#stay', 'Alert'))
164 8 682 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Multi-Line comments'))
171 6 676 if ($self->testKeyword($text, 'attention', 0, undef, 0, '#stay', 'Alert'))
185 0 664 if ($self->testRegExpr($text, '//\\s*BEGIN.*$', 0, 0, 0, undef, 1, '#stay', 'Region Marker'))
194 0 664 if ($self->testRegExpr($text, '//\\s*END.*$', 0, 0, 0, undef, 1, '#stay', 'Region Marker'))
202 30 634 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment1', 'Single-Line comments'))
211 8 626 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Comment2', 'Multi-Line comments'))
218 2 624 if ($self->testKeyword($text, 'modifiers', 0, undef, 0, '#stay', 'Modifier'))
225 16 608 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Datatype'))
232 12 596 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keywords'))
240 2 594 if ($self->testDetectChar($text, '#', 0, 0, 0, 0, 0, 'Preprocessor', 'Preprocessor'))
247 20 574 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Floats'))
251 0 20 if ($self->testAnyChar($text, 'fFeE', 0, 0, undef, 0, '#stay', undef))
259 0 594 if ($self->testRegExpr($text, '0b[01]+', 0, 0, 0, undef, 0, '#stay', 'Binary'))
266 0 594 if ($self->testRegExpr($text, '0x[0-9a-fA-F]+', 0, 0, 0, undef, 0, '#stay', 'Hexadecimal'))
273 0 594 if ($self->testRegExpr($text, '0o[0-7]+', 0, 0, 0, undef, 0, '#stay', 'Octal'))
279 0 594 if ($self->testInt($text, 0, undef, 0, '#stay', 'Integer'))
286 4 590 if ($self->testRegExpr($text, q<#'[^\\t ][^\\t ,);}\\]/]*>, 0, 0, 0, undef, 0, '#stay', 'Closure'))
293 4 586 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String1', 'Strings'))
299 0 586 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'Char'))
307 8 578 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Default'))
315 8 570 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Default'))
326 6 204 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Preprocessor'))
334 2 202 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment1', 'Single-Line comments'))
343 0 202 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Comment2', 'Multi-Line comments'))
350 0 202 if ($self->testKeyword($text, 'modifiers', 0, undef, 0, '#stay', 'Modifier'))
357 0 202 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Datatype'))
364 2 200 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keywords'))
371 4 196 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String2', 'Preprocessor-Strings'))
382 2 42 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Default'))
390 0 42 if ($self->testDetect2Chars($text, '\\', '\\', 0, 0, 0, undef, 0, '#stay', 'Strings'))
398 0 42 if ($self->testDetect2Chars($text, '\\', '"', 0, 0, 0, undef, 0, '#stay', 'Strings'))
405 4 38 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Strings'))
416 0 16 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'Default'))
424 0 16 if ($self->testDetect2Chars($text, '\\', '\\', 0, 0, 0, undef, 0, '#stay', 'Preprocessor-Strings'))
432 0 16 if ($self->testDetect2Chars($text, '\\', '"', 0, 0, 0, undef, 0, '#stay', 'Preprocessor-Strings'))
439 4 12 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Preprocessor-Strings'))