Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Python.pm
Criterion Covered Total %
branch 45 90 50.0


line true false branch
210 15 2749 if ($self->testKeyword($text, 'prep', 0, undef, 0, '#stay', 'Preprocessor'))
217 82 2667 if ($self->testKeyword($text, 'statements', 0, undef, 0, '#stay', 'Keyword'))
224 2 2665 if ($self->testKeyword($text, 'builtinfuncs', 0, undef, 0, '#stay', 'Builtin Function'))
231 38 2627 if ($self->testKeyword($text, 'specialvars', 0, undef, 0, '#stay', 'Special Variable'))
238 473 2154 if ($self->testRegExpr($text, '[a-zA-Z_]\\w+', 0, 0, 0, undef, 0, '#stay', 'Normal'))
245 0 2154 if ($self->testRegExpr($text, ' (((\\d*\\.\\d+|\\d+\\.)|(\\d+|(\\d*\\.\\d+|\\d+\\.))[eE][+-]?\\d+)|\\d+)[jJ]', 0, 0, 0, undef, 0, '#stay', 'Complex'))
252 0 2154 if ($self->testRegExpr($text, '(\\d+\\.\\d*|\\.\\d+)([eE]\\d+)?', 0, 0, 0, undef, 0, '#stay', 'Float'))
259 12 2142 if ($self->testRegExpr($text, '([1-9]\\d*([eE]\\d+)?|0)', 0, 0, 0, undef, 0, '#stay', 'Int'))
266 0 2142 if ($self->testRegExpr($text, '[1-9]\\d*([eE][\\d.]+)?[Ll]', 0, 0, 0, undef, 0, '#stay', 'Long'))
273 0 2142 if ($self->testRegExpr($text, '0[Xx][\\da-fA-F]+', 0, 0, 0, undef, 0, '#stay', 'Hex'))
280 0 2142 if ($self->testRegExpr($text, '0[1-9]\\d*', 0, 0, 0, undef, 0, '#stay', 'Octal'))
287 0 2142 if ($self->testRegExpr($text, q[[rR]'], 0, 0, 0, undef, 0, 'Raw A-string', 'Raw String'))
294 0 2142 if ($self->testRegExpr($text, '[rR]"', 0, 0, 0, undef, 0, 'Raw Q-string', 'Raw String'))
301 0 2142 if ($self->testRegExpr($text, '#.*$', 0, 0, 0, undef, 0, '#stay', 'Comment'))
309 0 2142 if ($self->testStringDetect($text, q['''], 0, 0, 0, undef, 1, 'Tripple A-comment', 'Comment'))
317 0 2142 if ($self->testStringDetect($text, '"""', 0, 0, 0, undef, 1, 'Tripple Q-comment', 'Comment'))
324 0 2142 if ($self->testStringDetect($text, q['''], 0, 0, 0, undef, 0, 'Tripple A-string', 'String'))
331 8 2134 if ($self->testStringDetect($text, '"""', 0, 0, 0, undef, 0, 'Tripple Q-string', 'String'))
338 14 2120 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'Single A-string', 'String'))
345 80 2040 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'Single Q-string', 'String'))
352 290 1750 if ($self->testRegExpr($text, '[+*/\\(\\)%\\|\\[\\]\\{\\}:=;\\!<>!^&~-]', 0, 0, 0, undef, 0, '#stay', 'Operator'))
363 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'Raw String'))
370 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Raw String'))
381 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'Raw String'))
388 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Raw String'))
399 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'Comment'))
406 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'Comment'))
417 2 190 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String'))
424 0 190 if ($self->testRegExpr($text, '%[a-zA-Z]', 0, 0, 0, undef, 0, '#stay', 'Operator'))
431 14 176 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'String'))
442 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'Comment'))
449 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Comment'))
460 4 1314 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String'))
467 0 1314 if ($self->testRegExpr($text, '%[a-zA-Z]', 0, 0, 0, undef, 0, '#stay', 'Operator'))
474 80 1234 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
485 0 0 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Comment'))
492 0 0 if ($self->testStringDetect($text, q['''], 0, 0, 0, undef, 0, '#pop', 'Comment'))
503 0 0 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'String'))
510 0 0 if ($self->testRegExpr($text, '%[a-zA-Z]', 0, 0, 0, undef, 0, '#stay', 'Operator'))
517 0 0 if ($self->testStringDetect($text, q['''], 0, 0, 0, undef, 0, '#pop', 'String'))
528 0 0 if ($self->testHlCChar($text, 0, undef, 0, '#stay', 'Comment'))
535 0 0 if ($self->testStringDetect($text, '"""', 0, 0, 0, undef, 0, '#pop', 'Comment'))
546 0 738 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String'))
553 0 738 if ($self->testRegExpr($text, '%[a-zA-Z]', 0, 0, 0, undef, 0, '#stay', 'Operator'))
560 8 730 if ($self->testStringDetect($text, '"""', 0, 0, 0, undef, 0, '#pop', 'String'))