Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/JavaScript.pm
Criterion Covered Total %
branch 90 102 88.2


line true false branch
504 76 116 if ($self->testRegExpr($text, '\\s*', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
511 2 114 if ($self->testRegExpr($text, '//(?=;)', 0, 0, 0, undef, 0, '#pop', 'Regular Expression'))
519 0 114 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
527 2 112 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Multi/inline Comment', 'Comment'))
534 34 78 if ($self->testDetectChar($text, '/', 0, 0, 0, undef, 0, '(regex caret first check)', 'Regular Expression'))
546 2 2 if ($self->testDetectChar($text, '^', 0, 0, 0, undef, 0, 'Regular Expression Character Class', 'Pattern Internal Operator'))
558 4 30 if ($self->testDetectChar($text, '^', 0, 0, 0, undef, 0, 'Regular Expression', 'Pattern Internal Operator'))
567 14 708 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
572 4 704 if ($self->includePlugin('Alerts', $text))
576 198 506 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
586 4 2788 if ($self->includePlugin('Alerts', $text))
595 18 2770 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
604 10 890 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
612 0 890 if ($self->testStringDetect($text, '//BEGIN', 0, 0, 0, undef, 0, 'region_marker', 'Region Marker'))
620 0 890 if ($self->testRegExpr($text, '//END', 0, 0, 0, undef, 0, 'region_marker', 'Region Marker'))
627 56 834 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword'))
634 2 832 if ($self->testKeyword($text, 'functions', 0, undef, 0, '#stay', 'Function'))
641 8 824 if ($self->testKeyword($text, 'objects', 0, undef, 0, '#stay', 'Objects'))
648 6 818 if ($self->testKeyword($text, 'math', 0, undef, 0, '#stay', 'Math'))
655 0 818 if ($self->testKeyword($text, 'events', 0, undef, 0, '#stay', 'Events'))
662 10 808 if ($self->testKeyword($text, 'methods', 0, undef, 0, '#stay', 'Data Type'))
666 72 736 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
672 6 730 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float'))
678 0 730 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
685 16 714 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
692 2 712 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'String 1', 'String'))
700 34 678 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
709 16 662 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Multi/inline Comment', 'Comment'))
716 68 594 if ($self->testRegExpr($text, '[=?:]', 0, 0, 0, undef, 0, '(Internal regex catch)', 'Normal Text'))
723 46 548 if ($self->testRegExpr($text, '\\(', 0, 0, 0, undef, 0, '(Internal regex catch)', 'Normal Text'))
731 16 532 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
739 16 516 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
746 110 406 if ($self->testAnyChar($text, ':!%&+,-/.*<=>?[]|~^;', 0, 0, undef, 0, '#stay', 'Symbol'))
758 34 230 if ($self->testRegExpr($text, '/[ig]{0,2}', 0, 0, 0, undef, 0, '#pop#pop#pop', 'Regular Expression'))
765 4 226 if ($self->testRegExpr($text, '\\{[\\d, ]+\\}', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
772 4 222 if ($self->testRegExpr($text, '\\\\[bB]', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
779 20 202 if ($self->testRegExpr($text, '\\\\[nrtvfDdSsWw]', 0, 0, 0, undef, 0, '#stay', 'Pattern Character Class'))
786 4 198 if ($self->testDetectChar($text, '[', 0, 0, 0, undef, 0, '(charclass caret first check)', 'Pattern Character Class'))
793 10 188 if ($self->testRegExpr($text, '\\\\.', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
800 6 182 if ($self->testRegExpr($text, '\\$(?=/)', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
807 36 146 if ($self->testAnyChar($text, '?+*()|', 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
819 0 24 if ($self->testRegExpr($text, '\\\\[\\[\\]]', 0, 0, 0, undef, 0, '#stay', 'Pattern Character Class'))
826 4 20 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#pop#pop', 'Pattern Character Class'))
835 16 60 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
841 4 56 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
848 16 40 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
857 2 2 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
864 0 2 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
871 2 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'String Char'))
880 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
884 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))