Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/JSP.pm
Criterion Covered Total %
branch 143 296 48.3


line true false branch
2961 260 816 if ($self->testRegExpr($text, '\\/?>', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
2968 92 724 if ($self->testRegExpr($text, '\\s*=\\s*', 0, 0, 0, undef, 0, 'Html Value', 'Normal Text'))
2975 0 724 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
2982 0 724 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
2990 0 724 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3002 0 340 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3009 0 340 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3017 0 340 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3024 2 338 if ($self->testRegExpr($text, '\\/*-->', 0, 0, 0, undef, 0, '#pop', 'Html Comment'))
3036 0 470 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3043 0 470 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3051 0 470 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3058 0 470 if ($self->testRegExpr($text, '<\\s*\\/?\\s*\\$?\\w*:\\$?\\w*', 0, 0, 0, undef, 0, 'Jsp Custom Tag', 'Keyword'))
3065 92 378 if ($self->testRegExpr($text, '("|"|")', 0, 0, 0, undef, 0, '#pop#pop', 'Types'))
3077 0 0 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3084 0 0 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3092 0 0 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3099 0 0 if ($self->testRegExpr($text, '<\\s*\\/?\\s*\\$?\\w*:\\$?\\w*', 0, 0, 0, undef, 0, 'Jsp Custom Tag', 'Keyword'))
3106 0 0 if ($self->testRegExpr($text, q[('|')], 0, 0, 0, undef, 0, '#pop#pop', 'Types'))
3118 0 0 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3125 0 0 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3133 0 0 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3140 0 0 if ($self->testRegExpr($text, '<\\s*\\/?\\s*\\$?\\w*:\\$?\\w*', 0, 0, 0, undef, 0, 'Jsp Custom Tag', 'Keyword'))
3147 0 0 if ($self->testRegExpr($text, '\\/?>', 0, 0, 0, undef, 0, '#pop#pop#pop', 'Normal Text'))
3154 0 0 if ($self->testRegExpr($text, '\\s+', 0, 0, 0, undef, 0, '#pop#pop', 'Types'))
3166 0 92 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3173 0 92 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3181 0 92 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3188 0 92 if ($self->testRegExpr($text, '<\\s*\\/?\\s*\\$?\\w*:\\$?\\w*', 0, 0, 0, undef, 0, 'Jsp Custom Tag', 'Keyword'))
3195 92 0 if ($self->testRegExpr($text, '("|"|")', 0, 0, 0, undef, 0, 'Html Double Quoted Value', 'Types'))
3202 0 0 if ($self->testRegExpr($text, q[('|')], 0, 0, 0, undef, 0, 'Html Single Quoted Value', 'Types'))
3209 0 0 if ($self->testRegExpr($text, '\\s*#?-?_?\\.?[a-zA-Z0-9]*', 0, 0, 0, undef, 0, 'Html Unquoted Value', 'Types'))
3216 0 0 if ($self->testRegExpr($text, '\\/?>', 0, 0, 0, undef, 0, '#pop#pop', 'Normal Text'))
3229 2 92 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Java Comment'))
3247 0 32 if ($self->testDetect2Chars($text, '\\', '"', 0, 0, 0, undef, 0, '#stay', 'String'))
3254 12 20 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
3266 24 1142 if ($self->testStringDetect($text, '--%>', 0, 0, 0, undef, 0, '#pop', 'Jsp Comment'))
3278 16 150 if ($self->testRegExpr($text, '\\/?>', 0, 0, 0, undef, 0, '#pop', 'Keyword'))
3285 20 130 if ($self->testRegExpr($text, '\\s*=\\s*', 0, 0, 0, undef, 0, 'Jsp Custom Tag Value', 'Normal Text'))
3292 0 130 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3299 0 130 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3307 0 130 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3319 0 22 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3326 0 22 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3334 0 22 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3341 20 2 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Jsp Double Quoted Custom Tag Value', 'Types'))
3348 0 2 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'Jsp Single Quoted Custom Tag Value', 'Types'))
3355 0 2 if ($self->testRegExpr($text, '\\/?>', 0, 0, 0, undef, 0, '#pop#pop', 'Normal Text'))
3367 20 92 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop#pop', 'Types'))
3374 0 92 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3381 0 92 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3389 6 86 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3401 26 528 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop#pop', 'Jsp Param Value'))
3408 0 528 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3415 0 528 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3423 0 528 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3435 0 74 if ($self->testStringDetect($text, q['${'], 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
3442 6 68 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#pop', 'Jsp Scriptlet'))
3449 0 68 if ($self->testKeyword($text, 'java-1.4.2-keywords', 0, undef, 0, '#stay', 'Keyword'))
3456 2 66 if ($self->testKeyword($text, 'jsp-reserved-words', 0, undef, 0, '#stay', 'Keyword'))
3463 0 66 if ($self->testKeyword($text, 'java-1.4.2-types', 0, undef, 0, '#stay', 'Types'))
3470 0 66 if ($self->testKeyword($text, 'java-1.4.2-classes', 0, undef, 0, '#stay', 'Java 1.4.2 Classes'))
3477 0 66 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float'))
3482 0 0 if ($self->testAnyChar($text, 'fF', 0, 0, undef, 0, '#stay', 'Float'))
3489 0 66 if ($self->testHlCOct($text, 0, undef, 0, '#stay', 'Octal'))
3495 0 66 if ($self->testHlCHex($text, 0, undef, 0, '#stay', 'Hex'))
3502 0 66 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
3508 0 0 if ($self->testStringDetect($text, 'ULL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3516 0 0 if ($self->testStringDetect($text, 'LUL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3524 0 0 if ($self->testStringDetect($text, 'LLU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3532 0 0 if ($self->testStringDetect($text, 'UL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3540 0 0 if ($self->testStringDetect($text, 'LU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3548 0 0 if ($self->testStringDetect($text, 'LL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3556 0 0 if ($self->testStringDetect($text, 'U', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3564 0 0 if ($self->testStringDetect($text, 'L', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3571 0 66 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Char'))
3578 0 66 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Java String', 'String'))
3585 2 64 if ($self->testAnyChar($text, '!%&()+,-<=>?[]^{|}~', 0, 0, undef, 0, '#stay', 'Symbol'))
3598 34 2028 if ($self->testDetect2Chars($text, '%', '>', 0, 0, 0, undef, 0, '#pop', 'Jsp Scriptlet'))
3605 0 2028 if ($self->testRegExpr($text, '<\\s*jsp:(declaration|expression|scriptlet)\\s*>', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3612 38 1990 if ($self->testKeyword($text, 'java-1.4.2-keywords', 0, undef, 0, '#stay', 'Keyword'))
3619 0 1990 if ($self->testKeyword($text, 'jsp-reserved-words', 0, undef, 0, '#stay', 'Keyword'))
3626 30 1960 if ($self->testKeyword($text, 'java-1.4.2-types', 0, undef, 0, '#stay', 'Types'))
3633 58 1902 if ($self->testKeyword($text, 'java-1.4.2-classes', 0, undef, 0, '#stay', 'Java 1.4.2 Classes'))
3640 8 1894 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float'))
3645 0 8 if ($self->testAnyChar($text, 'fF', 0, 0, undef, 0, '#stay', 'Float'))
3652 0 1902 if ($self->testHlCOct($text, 0, undef, 0, '#stay', 'Octal'))
3658 0 1902 if ($self->testHlCHex($text, 0, undef, 0, '#stay', 'Hex'))
3665 0 1902 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
3671 0 0 if ($self->testStringDetect($text, 'ULL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3679 0 0 if ($self->testStringDetect($text, 'LUL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3687 0 0 if ($self->testStringDetect($text, 'LLU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3695 0 0 if ($self->testStringDetect($text, 'UL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3703 0 0 if ($self->testStringDetect($text, 'LU', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3711 0 0 if ($self->testStringDetect($text, 'LL', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3719 0 0 if ($self->testStringDetect($text, 'U', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3727 0 0 if ($self->testStringDetect($text, 'L', 1, 0, 0, undef, 0, '#stay', 'Decimal'))
3734 0 1902 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Char'))
3743 0 1902 if ($self->testRegExpr($text, '//\\s*BEGIN.*$', 0, 0, 0, undef, 1, '#stay', 'Decimal'))
3752 0 1902 if ($self->testRegExpr($text, '//\\s*END.*$', 0, 0, 0, undef, 1, '#stay', 'Decimal'))
3759 12 1890 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Java String', 'String'))
3767 10 1880 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
3775 10 1870 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
3782 194 1676 if ($self->testAnyChar($text, '!%&()+,-<=>?[]^{|}~', 0, 0, undef, 0, '#stay', 'Symbol'))
3790 10 1666 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Java Single-Line Comment', 'Java Comment'))
3798 2 1664 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Java Multi-Line Comment', 'Java Comment'))
3810 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop#pop', 'Types'))
3817 0 0 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3824 0 0 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3832 0 0 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3844 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop#pop', 'Jsp Param Value'))
3851 0 0 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3858 0 0 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3866 0 0 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3879 8 110 if ($self->testDetect2Chars($text, '%', '>', 0, 0, 0, undef, 0, '#pop', 'Jsp Directive'))
3886 14 96 if ($self->testRegExpr($text, '\\s*=\\s*', 0, 0, 0, undef, 0, 'Jsp Standard Directive Value', 'Normal Text'))
3893 0 96 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3900 0 96 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3908 0 96 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3915 0 96 if ($self->testRegExpr($text, '<\\s*\\/?\\s*\\$?\\w*:\\$?\\w*', 0, 0, 0, undef, 0, 'Jsp Custom Tag', 'Keyword'))
3927 0 14 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3934 0 14 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
3942 0 14 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
3949 14 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Jsp Double Quoted Param Value', 'Jsp Param Value'))
3956 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'Jsp Single Quoted Param Value', 'Jsp Param Value'))
3964 0 0 if ($self->testDetect2Chars($text, '%', '>', 0, 0, 0, undef, 0, '#pop#pop', 'Jsp Directive'))
3976 4 72 if ($self->testRegExpr($text, '\\s*\\/?\\s*>', 0, 0, 0, undef, 0, '#pop', 'Jsp Directive'))
3983 12 60 if ($self->testRegExpr($text, '\\s*=\\s*', 0, 0, 0, undef, 0, 'Jsp Xml Directive Value', 'Normal Text'))
3990 0 60 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
3997 0 60 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
4005 0 60 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
4017 0 12 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
4024 0 12 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
4032 0 12 if ($self->testDetect2Chars($text, '$', '{', 0, 0, 0, undef, 0, 'Jsp Expression', 'Jsp Expression'))
4039 12 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Jsp Double Quoted Param Value', 'Jsp Param Value'))
4046 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'Jsp Single Quoted Param Value', 'Jsp Param Value'))
4053 0 0 if ($self->testRegExpr($text, '\\s*\\/?\\s*>', 0, 0, 0, undef, 0, '#pop#pop', 'Jsp Directive'))
4065 8 1830 if ($self->testRegExpr($text, '<%@\\s*[a-zA-Z0-9_\\.]*', 0, 0, 0, undef, 0, 'Jsp Standard Directive', 'Jsp Directive'))
4072 0 1830 if ($self->testRegExpr($text, '<\\s*jsp:(declaration|expression|scriptlet)\\s*>', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
4079 4 1826 if ($self->testRegExpr($text, '<\\s*\\/?s*jsp:[a-zA-Z0-9_\\.]*', 0, 0, 0, undef, 0, 'Jsp Xml Directive', 'Jsp Directive'))
4086 24 1802 if ($self->testStringDetect($text, '<%--', 0, 0, 0, undef, 0, 'Jsp Comment', 'Jsp Comment'))
4093 34 1768 if ($self->testRegExpr($text, '<%(!|=)?', 0, 0, 0, undef, 0, 'Jsp Scriptlet', 'Jsp Scriptlet'))
4100 2 1766 if ($self->testStringDetect($text, '