Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Java.pm
Criterion Covered Total %
branch 45 94 47.8


line true false branch
3442 2 534 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
3454 0 140 if ($self->testRegExpr($text, '\\s*.*$', 0, 0, 0, undef, 0, '#pop', 'Imports'))
3466 42 0 if ($self->testRegExpr($text, '\\b[_a-zA-Z]\\w*(?=[\\s]*)', 0, 0, 0, undef, 0, '#pop', 'Function'))
3476 8 2864 if ($self->includePlugin('Javadoc', $text))
3483 78 2786 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword'))
3490 14 2772 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Data Type'))
3497 42 2730 if ($self->testKeyword($text, 'java15', 0, undef, 0, '#stay', 'Java15'))
3504 2 2728 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float'))
3509 0 2 if ($self->testAnyChar($text, 'fF', 0, 0, undef, 0, '#stay', 'Float'))
3516 0 2730 if ($self->testHlCOct($text, 0, undef, 0, '#stay', 'Octal'))
3522 0 2730 if ($self->testHlCHex($text, 0, undef, 0, '#stay', 'Hex'))
3529 0 2730 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
3535 0 0 if ($self->testStringDetect($text, 'ULL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3543 0 0 if ($self->testStringDetect($text, 'LUL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3551 0 0 if ($self->testStringDetect($text, 'LLU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3559 0 0 if ($self->testStringDetect($text, 'UL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3567 0 0 if ($self->testStringDetect($text, 'LU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3575 0 0 if ($self->testStringDetect($text, 'LL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3583 0 0 if ($self->testStringDetect($text, 'U', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3591 0 0 if ($self->testStringDetect($text, 'L', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3598 0 2730 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Char'))
3606 0 2730 if ($self->testRegExpr($text, '//\\s*BEGIN.*$', 0, 0, 0, undef, 0, '#stay', 'Decimal'))
3614 0 2730 if ($self->testRegExpr($text, '//\\s*END.*$', 0, 0, 0, undef, 0, '#stay', 'Decimal'))
3621 14 2716 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
3628 0 2716 if ($self->testRegExpr($text, '\\.(format|printf)\\b', 0, 0, 0, undef, 0, 'Printf', 'Function'))
3636 0 2716 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Commentar 1', 'Comment'))
3645 2 2714 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
3653 44 2670 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
3661 44 2626 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
3668 0 2626 if ($self->testRegExpr($text, '\\.{3,3}\\s+', 0, 0, 0, undef, 0, '#stay', 'Keyword'))
3675 0 2626 if ($self->testRegExpr($text, '\\b(import\\s+static)\\b', 0, 0, 0, undef, 0, 'StaticImports', 'Keyword'))
3682 6 2620 if ($self->testRegExpr($text, '\\b(package|import)\\b', 0, 0, 0, undef, 0, 'Imports', 'Keyword'))
3689 6 2614 if ($self->testRegExpr($text, '\\b[_\\w][_\\w\\d]*(?=[\\s]*(/\\*\\s*\\d+\\s*\\*/\\s*)?[(])', 0, 0, 0, undef, 0, '#stay', 'Function'))
3696 42 2572 if ($self->testRegExpr($text, '[.]{1,1}', 0, 0, 0, undef, 0, 'Member', 'Symbol'))
3703 222 2350 if ($self->testAnyChar($text, ':!%&()+,-/.*<=>?[]|~^;', 0, 0, undef, 0, '#stay', 'Symbol'))
3715 0 0 if ($self->testDetectChar($text, ';', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
3722 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'PrintfString', 'String'))
3733 0 0 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'String'))
3739 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
3746 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
3753 0 0 if ($self->testRegExpr($text, '%(\\d+\\$)?(-|#|\\+|\\ |0|,|\\()*\\d*(\\.\\d+)?[a-hosxA-CEGHSX]', 0, 0, 0, undef, 0, '#stay', 'String Char'))
3760 0 0 if ($self->testRegExpr($text, '%(\\d+\\$)?(-|#|\\+|\\ |0|,|\\()*\\d*(t|T)(a|A|b|B|c|C|d|D|e|F|h|H|I|j|k|l|L|m|M|N|p|P|Q|r|R|s|S|T|y|Y|z|Z)', 0, 0, 0, undef, 0, '#stay', 'String Char'))
3767 0 0 if ($self->testRegExpr($text, '%(%|n)', 0, 0, 0, undef, 0, '#stay', 'String Char'))
3779 0 0 if ($self->testRegExpr($text, '\\s*.*$', 0, 0, 0, undef, 0, '#pop', 'StaticImports'))
3790 0 352 if ($self->testLineContinue($text, 0, undef, 0, '#stay', 'String'))
3796 0 352 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
3803 14 338 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))