Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/PHP_PHP.pm
Criterion Covered Total %
branch 52 88 59.0


line true false branch
6506 0 70 if ($self->testDetect2Chars($text, "\\", "\"", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6514 0 70 if ($self->testDetect2Chars($text, "\\", "\\", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6522 0 70 if ($self->testDetect2Chars($text, "\\", "n", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6530 0 70 if ($self->testDetect2Chars($text, "\\", "r", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6538 0 70 if ($self->testDetect2Chars($text, "\\", "t", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6546 0 70 if ($self->testDetect2Chars($text, "\\", "\$", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6553 0 70 if ($self->testRegExpr($text, "\\\\[0-7]{1,3}", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6560 0 70 if ($self->testRegExpr($text, "\\\\x[0-9A-Fa-f]{1,2}", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6567 0 70 if ($self->testRegExpr($text, "\\\$[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[[a-zA-Z0-9_]*\\])*", 0, 0, 0, undef, 0, "#stay", "Variable"))
6574 0 70 if ($self->testRegExpr($text, "\\\$\\{[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[[a-zA-Z0-9_]*\\])*\\}", 0, 0, 0, undef, 0, "#stay", "Variable"))
6581 0 70 if ($self->testRegExpr($text, "\\{\\\$[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[([0-9]*|\"[^\"]*\")|'[^']*'|\\])*(->[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[[a-zA-Z0-9_]*\\])*(\\[([0-9]*|\"[a-zA-Z_]*\")|'[a-zA-Z_]*'|\\])*)*\\}", 0, 0, 0, undef, 0, "#stay", "Variable"))
6588 6 64 if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "#pop", "String"))
6601 0 0 if ($self->testRegExpr($text, "^%1;?\$", 0, 1, 0, undef, 0, "#pop", "Backslash Code"))
6608 0 0 if ($self->testRegExpr($text, "\\\$[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[[a-zA-Z0-9_]*\\])*", 0, 0, 0, undef, 0, "#stay", "Variable"))
6615 0 0 if ($self->testRegExpr($text, "\\\$\\{[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[[a-zA-Z0-9_]*\\])*\\}", 0, 0, 0, undef, 0, "#stay", "Variable"))
6622 0 0 if ($self->testRegExpr($text, "\\{\\\$[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[([0-9]*|\"[a-zA-Z_]*\")|'[a-zA-Z_]*'|\\])*(->[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\[[a-zA-Z0-9_]*\\])*(\\[([0-9]*|\"[a-zA-Z_]*\")|'[a-zA-Z_]*'|\\])*)*\\}", 0, 0, 0, undef, 0, "#stay", "Variable"))
6635 0 244 if ($self->testStringDetect($text, "?>", 0, 0, 1, undef, 0, "#pop", "Keyword"))
6644 20 52 if ($self->testDetectSpaces($text, 0, undef, 0, "#stay", undef))
6652 6 46 if ($self->testStringDetect($text, "?>", 0, 0, 0, undef, 0, "#pop#pop", "Keyword"))
6659 6 40 if ($self->testDetectChar($text, "#", 0, 0, 0, undef, 0, "onelinecomment", "Comment"))
6664 0 40 if ($self->includePlugin("Doxygen", $text))
6672 2 38 if ($self->testDetect2Chars($text, "/", "/", 0, 0, 0, undef, 0, "onelinecomment", "Comment"))
6681 2 36 if ($self->testDetect2Chars($text, "/", "*", 0, 0, 0, undef, 0, "twolinecomment", "Comment"))
6688 2 34 if ($self->testKeyword($text, "control structures", 0, undef, 0, "#stay", "Control Structures"))
6695 2 32 if ($self->testKeyword($text, "keywords", 0, undef, 0, "#stay", "Keyword"))
6702 4 28 if ($self->testKeyword($text, "functions", 0, undef, 0, "#stay", "Function"))
6706 2 26 if ($self->testDetectIdentifier($text, 0, undef, 0, "#stay", undef))
6713 6 20 if ($self->testDetectChar($text, "\"", 0, 0, 0, undef, 0, "doblequotestring", "String"))
6720 0 20 if ($self->testDetectChar($text, "'", 0, 0, 0, undef, 0, "singlequotestring", "String"))
6727 0 20 if ($self->testRegExpr($text, "<<<([A-Za-z_][A-Za-z0-9_]*)", 0, 0, 0, undef, 0, "heredoc", "Backslash Code"))
6734 2 18 if ($self->testRegExpr($text, "\\\$+[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*", 0, 0, 0, undef, 0, "#stay", "Variable"))
6741 0 18 if ($self->testRegExpr($text, "[0123456789]*\\.\\.\\.[0123456789]*", 0, 0, 0, undef, 0, "#stay", "String"))
6747 0 18 if ($self->testHlCOct($text, 0, undef, 0, "#stay", "Octal"))
6753 0 18 if ($self->testHlCHex($text, 0, undef, 0, "#stay", "Hex"))
6759 0 18 if ($self->testFloat($text, 0, undef, 0, "#stay", "Float"))
6765 0 18 if ($self->testInt($text, 0, undef, 0, "#stay", "Decimal"))
6773 2 16 if ($self->testDetectChar($text, "{", 0, 0, 0, undef, 0, "#stay", "Normal Text"))
6781 2 14 if ($self->testDetectChar($text, "}", 0, 0, 0, undef, 0, "#stay", "Normal Text"))
6788 14 0 if ($self->testAnyChar($text, ";()}{:,[]", 0, 0, undef, 0, "#stay", "Other"))
6801 0 0 if ($self->testDetect2Chars($text, "\\", "'", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6809 0 0 if ($self->testDetect2Chars($text, "\\", "\\", 0, 0, 0, undef, 0, "#stay", "Backslash Code"))
6816 0 0 if ($self->testDetectChar($text, "'", 0, 0, 0, undef, 0, "#pop", "String"))
6829 6 0 if ($self->testRegExpr($text, "<\\?(?:=|php)?", 0, 0, 0, undef, 0, "phpsource", "Keyword"))
6843 2 134 if ($self->testDetect2Chars($text, "*", "/", 0, 0, 0, undef, 0, "#pop", "Comment"))