Branch Coverage

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


line true false branch
505 0 0 if ($self->includeRules('FindPHP', $text))
512 0 0 if ($self->testRegExpr($text, '\\s*', 0, 0, 0, undef, 0, '#stay', 'Normal Text'))
519 0 0 if ($self->testRegExpr($text, '//(?=;)', 0, 0, 0, undef, 0, '#pop', 'Regular Expression'))
527 0 0 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
535 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Multi/inline Comment', 'Comment'))
542 0 0 if ($self->testDetectChar($text, '/', 0, 0, 0, undef, 0, '(regex caret first check)', 'Regular Expression'))
552 0 0 if ($self->includeRules('FindPHP', $text))
559 0 0 if ($self->testDetectChar($text, '^', 0, 0, 0, undef, 0, 'Regular Expression Character Class', 'Pattern Internal Operator'))
569 0 0 if ($self->includeRules('FindPHP', $text))
576 0 0 if ($self->testDetectChar($text, '^', 0, 0, 0, undef, 0, 'Regular Expression', 'Pattern Internal Operator'))
586 0 0 if ($self->includeRules('FindPHP', $text))
590 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
595 0 0 if ($self->includePlugin('Alerts', $text))
599 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
611 0 0 if ($self->testRegExpr($text, '<\\?(?:=|php)?', 0, 0, 1, undef, 0, '##PHP/PHP', undef))
621 0 0 if ($self->includeRules('FindPHP', $text))
626 0 0 if ($self->includePlugin('Alerts', $text))
635 0 0 if ($self->testDetect2Chars($text, '*', '/', 0, 0, 0, undef, 0, '#pop', 'Comment'))
645 0 0 if ($self->includeRules('FindPHP', $text))
649 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))
657 0 0 if ($self->testStringDetect($text, '//BEGIN', 0, 0, 0, undef, 0, 'region_marker', 'Region Marker'))
665 0 0 if ($self->testRegExpr($text, '//END', 0, 0, 0, undef, 0, 'region_marker', 'Region Marker'))
672 0 0 if ($self->testKeyword($text, 'keywords', 0, undef, 0, '#stay', 'Keyword'))
679 0 0 if ($self->testKeyword($text, 'functions', 0, undef, 0, '#stay', 'Function'))
686 0 0 if ($self->testKeyword($text, 'objects', 0, undef, 0, '#stay', 'Objects'))
693 0 0 if ($self->testKeyword($text, 'math', 0, undef, 0, '#stay', 'Math'))
700 0 0 if ($self->testKeyword($text, 'events', 0, undef, 0, '#stay', 'Events'))
707 0 0 if ($self->testKeyword($text, 'methods', 0, undef, 0, '#stay', 'Data Type'))
711 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
717 0 0 if ($self->testFloat($text, 0, undef, 0, '#stay', 'Float'))
723 0 0 if ($self->testInt($text, 0, undef, 0, '#stay', 'Decimal'))
730 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
737 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, 'String 1', 'String'))
745 0 0 if ($self->testDetect2Chars($text, '/', '/', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
754 0 0 if ($self->testDetect2Chars($text, '/', '*', 0, 0, 0, undef, 0, 'Multi/inline Comment', 'Comment'))
761 0 0 if ($self->testRegExpr($text, '[=?:]', 0, 0, 0, undef, 0, '(Internal regex catch)', 'Normal Text'))
768 0 0 if ($self->testRegExpr($text, '\\(', 0, 0, 0, undef, 0, '(Internal regex catch)', 'Normal Text'))
776 0 0 if ($self->testDetectChar($text, '{', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
784 0 0 if ($self->testDetectChar($text, '}', 0, 0, 0, undef, 0, '#stay', 'Symbol'))
791 0 0 if ($self->testAnyChar($text, ':!%&+,-/.*<=>?[]|~^;', 0, 0, undef, 0, '#stay', 'Symbol'))
801 0 0 if ($self->includeRules('FindPHP', $text))
808 0 0 if ($self->testRegExpr($text, '/[ig]{0,2}', 0, 0, 0, undef, 0, '#pop#pop#pop', 'Regular Expression'))
815 0 0 if ($self->testRegExpr($text, '\\{[\\d, ]+\\}', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
822 0 0 if ($self->testRegExpr($text, '\\\\[bB]', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
829 0 0 if ($self->testRegExpr($text, '\\\\[nrtvfDdSsWw]', 0, 0, 0, undef, 0, '#stay', 'Pattern Character Class'))
836 0 0 if ($self->testDetectChar($text, '[', 0, 0, 0, undef, 0, '(charclass caret first check)', 'Pattern Character Class'))
843 0 0 if ($self->testRegExpr($text, '\\\\.', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
850 0 0 if ($self->testRegExpr($text, '\\$(?=/)', 0, 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
857 0 0 if ($self->testAnyChar($text, '?+*()|', 0, 0, undef, 0, '#stay', 'Pattern Internal Operator'))
867 0 0 if ($self->includeRules('FindPHP', $text))
874 0 0 if ($self->testRegExpr($text, '\\\\[\\[\\]]', 0, 0, 0, undef, 0, '#stay', 'Pattern Character Class'))
881 0 0 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#pop#pop', 'Pattern Character Class'))
891 0 0 if ($self->includeRules('FindPHP', $text))
895 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
901 0 0 if ($self->testHlCStringChar($text, 0, undef, 0, '#stay', 'String Char'))
908 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'String'))
918 0 0 if ($self->includeRules('FindPHP', $text))
922 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
929 0 0 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, 'String', 'String'))
936 0 0 if ($self->testDetectChar($text, q['], 0, 0, 0, undef, 0, '#pop', 'String Char'))
946 0 0 if ($self->includeRules('FindPHP', $text))
950 0 0 if ($self->testDetectIdentifier($text, 0, undef, 0, '#stay', undef))
954 0 0 if ($self->testDetectSpaces($text, 0, undef, 0, '#stay', undef))