Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/Cg.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
269 0 0 if ($self->testKeyword($text, 'attention', 0, undef, 0, '#stay', 'Alert'))
283 0 0 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
290 0 0 if ($self->testKeyword($text, 'attention', 0, undef, 0, '#stay', 'Alert'))
304 0 0 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
316 0 0 if ($self->testRegExpr($text, '\\b[_\\w][_\\w\\d]*(?=[\\s]*)', 0, 0, 0, undef, 0, '#pop', 'Function'))
328 0 0 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword'))
335 0 0 if ($self->testKeyword($text, 'binding', 0, undef, 0, '#stay', 'Binding'))
342 0 0 if ($self->testKeyword($text, 'attention', 0, undef, 0, '#stay', 'Alert'))
350 0 0 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
358 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
365 0 0 if ($self->testRegExpr($text, 'float[1234](x[1234])?', 0, 0, 0, undef, 0, '#stay', 'Data Type'))
372 0 0 if ($self->testRegExpr($text, 'half[1234](x[1234])?', 0, 0, 0, undef, 0, '#stay', 'Data Type'))
379 0 0 if ($self->testRegExpr($text, 'fixed[1234](x[1234])?', 0, 0, 0, undef, 0, '#stay', 'Data Type'))
386 0 0 if ($self->testRegExpr($text, 'bool[1234](x[1234])?', 0, 0, 0, undef, 0, '#stay', 'Data Type'))
393 0 0 if ($self->testRegExpr($text, 'int[1234](x[1234])?', 0, 0, 0, undef, 0, '#stay', 'Data Type'))
400 0 0 if ($self->testKeyword($text, 'types', 0, undef, 0, '#stay', 'Data Type'))
407 0 0 if ($self->testKeyword($text, 'stdstruct', 0, undef, 0, '#stay', 'Data Type'))
414 0 0 if ($self->testRegExpr($text, '[0123456789]*[.][0123456789]+f', 0, 0, 0, undef, 0, '#stay', 'Float'))
421 0 0 if ($self->testRegExpr($text, '[0123456789]*[.][0123456789]+h', 0, 0, 0, undef, 0, '#stay', 'Half'))
428 0 0 if ($self->testRegExpr($text, '[0123456789]*[.][0123456789]+x', 0, 0, 0, undef, 0, '#stay', 'Fixed'))
435 0 0 if ($self->testRegExpr($text, '[0123456789]*[.][0123456789]+', 0, 0, 0, undef, 0, '#stay', 'Float'))
441 0 0 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
449 0 0 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Commentar 1', 'Comment'))
458 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
465 0 0 if ($self->testKeyword($text, 'stdlib', 0, undef, 0, '#stay', 'StdFunction'))
472 0 0 if ($self->testRegExpr($text, '\\b[_\\w][_\\w\\d]*(?=[\\s]*[(])', 0, 0, 0, undef, 0, '#stay', 'Function'))
479 0 0 if ($self->testRegExpr($text, '[.]{1,1}[rgbaxyzw]+(?=[\\s/*-+<>])', 0, 0, 0, undef, 0, '#stay', 'Swizzle'))
486 0 0 if ($self->testRegExpr($text, '[.]{1,1}', 0, 0, 0, undef, 0, 'Member', 'Symbol'))
493 0 0 if ($self->testAnyChar($text, ':!%&()+,-/.*<=>?[]|~^;', 0, 0, undef, 0, '#stay', 'Symbol'))
507 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
514 0 0 if ($self->testKeyword($text, 'attention', 0, undef, 0, '#stay', 'Alert'))
523 0 0 if ($self->testRegExpr($text, '#\\s*if', 0, 0, 0, undef, 1, 'Outscoped intern', 'Comment'))
532 0 0 if ($self->testRegExpr($text, '#\\s*(endif|else|elif)', 0, 0, 0, undef, 1, '#pop', 'Preprocessor'))
546 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Commentar 2', 'Comment'))
555 0 0 if ($self->testRegExpr($text, '#\\s*if', 0, 0, 0, undef, 1, 'Outscoped intern', 'Comment'))
564 0 0 if ($self->testRegExpr($text, '#\\s*endif', 0, 0, 0, undef, 1, '#pop', 'Comment'))