Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/PicAsm.pm
Criterion Covered Total %
branch 52 90 57.7


line true false branch
369 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Char'))
376 0 0 if ($self->testRegExpr($text, q[.[^']], 0, 0, 0, undef, 0, 'QuotedNumError', 'Error'))
388 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop#pop', 'Error'))
400 6 56 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Based Numbers'))
407 0 56 if ($self->testRegExpr($text, '[^0-1]', 0, 0, 0, undef, 0, 'QuotedNumError', 'Error'))
419 0 7336 if ($self->testRegExpr($text, '(INPUT|OUTPUT|PARAMETERS|AUTHOR|EMAIL)', 0, 0, 0, undef, 0, '#stay', 'Instructions'))
426 0 7336 if ($self->testRegExpr($text, '(FIXME|TODO)', 0, 0, 0, undef, 0, '#stay', 'Alert'))
438 22 54 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Based Numbers'))
445 0 54 if ($self->testRegExpr($text, '\\D', 0, 0, 0, undef, 0, 'QuotedNumError', 'Error'))
457 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Based Numbers'))
464 0 0 if ($self->testRegExpr($text, '[^0-9A-Fa-f]', 0, 0, 0, undef, 0, 'QuotedNumError', 'Error'))
476 78 4198 if ($self->testKeyword($text, 'directives', 0, undef, 0, '#stay', 'Directives'))
483 198 4000 if ($self->testKeyword($text, 'instructions', 0, undef, 0, '#stay', 'Instructions'))
490 22 3978 if ($self->testKeyword($text, 'instruction_attr', 0, undef, 0, '#stay', 'InstructionAttr'))
497 2 3976 if ($self->testKeyword($text, 'conditional', 0, undef, 0, '#stay', 'Preprocessor'))
504 0 3976 if ($self->testKeyword($text, 'gpasm_macro', 0, undef, 0, '#stay', 'GPASM-macros'))
510 6 3970 if ($self->testHlCHex($text, 0, undef, 0, '#stay', 'Based Numbers'))
518 0 3970 if ($self->testRegExpr($text, '([ \\t,][0-9A-F]+H[ \\t,])', 1, 0, 0, undef, 0, '#stay', 'Based Numbers'))
526 0 3970 if ($self->testRegExpr($text, '([ \\t,][0-9A-F]+H)$', 1, 0, 0, undef, 0, '#stay', 'Based Numbers'))
534 0 3970 if ($self->testRegExpr($text, '([ \\t,][0-9]+D)', 1, 0, 0, undef, 0, '#stay', 'Based Numbers'))
542 0 3970 if ($self->testRegExpr($text, '([ \\t,][0-7]+O)', 1, 0, 0, undef, 0, '#stay', 'Based Numbers'))
550 0 3970 if ($self->testRegExpr($text, '([ \\t,][0-1]+B)', 1, 0, 0, undef, 0, '#stay', 'Based Numbers'))
556 40 3930 if ($self->testInt($text, 0, undef, 0, '#stay', 'Unbased Numbers'))
562 0 3930 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Char'))
570 0 3930 if ($self->testDetect2Chars($text, 'A', q['], 0, 0, 0, undef, 0, 'ASCIIChar', 'Char'))
578 0 3930 if ($self->testDetect2Chars($text, 'a', q['], 0, 0, 0, undef, 0, 'ASCIIChar', 'Char'))
586 6 3924 if ($self->testDetect2Chars($text, 'B', q['], 0, 0, 0, undef, 0, 'binaryDigits', 'Based Numbers'))
594 0 3924 if ($self->testDetect2Chars($text, 'b', q['], 0, 0, 0, undef, 0, 'binaryDigits', 'Based Numbers'))
602 0 3924 if ($self->testDetect2Chars($text, 'H', q['], 0, 0, 0, undef, 0, 'hexDigits', 'Based Numbers'))
610 0 3924 if ($self->testDetect2Chars($text, 'h', q['], 0, 0, 0, undef, 0, 'hexDigits', 'Based Numbers'))
618 0 3924 if ($self->testDetect2Chars($text, 'O', q['], 0, 0, 0, undef, 0, 'octDigits', 'Based Numbers'))
626 0 3924 if ($self->testDetect2Chars($text, 'o', q['], 0, 0, 0, undef, 0, 'octDigits', 'Based Numbers'))
634 22 3902 if ($self->testDetect2Chars($text, 'D', q['], 0, 0, 0, undef, 0, 'decimalDigits', 'Based Numbers'))
642 0 3902 if ($self->testDetect2Chars($text, 'd', q['], 0, 0, 0, undef, 0, 'decimalDigits', 'Based Numbers'))
649 2 3900 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'string', 'String'))
656 262 3638 if ($self->testDetectChar($text, ';', 0, 0, 0, undef, 0, 'comment', 'Comment'))
663 28 3610 if ($self->testAnyChar($text, '-/*%+=><&|^!~', 0, 0, undef, 0, '#stay', 'Symbol'))
670 0 3610 if ($self->testStringDetect($text, '#define', 0, 0, 0, undef, 0, '#stay', 'Preprocessor'))
677 0 3610 if ($self->testStringDetect($text, '#undefine', 0, 0, 0, undef, 0, '#stay', 'Preprocessor'))
684 0 3610 if ($self->testStringDetect($text, '#v', 0, 0, 0, undef, 0, '#stay', 'Preprocessor'))
696 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Based Numbers'))
703 0 0 if ($self->testRegExpr($text, '[^0-7]', 0, 0, 0, undef, 0, 'QuotedNumError', 'Error'))
714 0 24 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'String'))
720 0 24 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'Char'))
727 2 22 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))