Condition Coverage

blib/lib/PPI/Token/Unknown.pm
Criterion Covered Total %
condition 83 90 92.2


and 3 conditions

line !l l&&!r l&&r condition
64 39 368 12 $prev and $prev->isa("PPI::Token::Number")
83 1 34 5 $prev and $prev->isa("PPI::Token::Operator")
35 4 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
106 84 15 55 $prev and $prev->isa("PPI::Token::Operator")
99 53 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
144 2 6 3 $prev and $prev->isa("PPI::Token::Operator")
8 2 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
182 2 27 8 $prev and $prev->isa("PPI::Token::Operator")
29 6 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
210 38 359 5 $prev and $prev->isa("PPI::Token::Number")
238 1 3 5 $prev and $prev->isa("PPI::Token::Operator")
4 4 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
254 35 181 13 $prev and $prev->isa("PPI::Token::Number")
340 432 33 34 $extra_check and not &$extra_check($token)
357 250 57 35 $token->isa("PPI::Token::Structure") and $token->content eq "}"
389 0 19 5 $token->isa('PPI::Token::Word') && ($content eq 'do' || $content eq 'eval')
396 250 10 47 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content}
426 0 647 0 $p0->isa("PPI::Token::Word") and $p0->content eq "sub"
433 1 22 624 $p1 and $p1->isa("PPI::Token::Word")
23 3 621 $p1 and $p1->isa("PPI::Token::Word") and $p1->content eq "sub"
25 621 0 $p1 and $p1->isa("PPI::Token::Word") and $p1->content eq "sub" and !$p2 || $p2->isa('PPI::Token::Structure') || $p2->isa('PPI::Token::Whitespace') && $p2->content eq ''

or 3 conditions

line l !l&&r !l&&!r condition
89 39 34 791 $char eq "*" or $char eq "="
104 14 140 16769 $char eq "*" or $char eq "#"
180 28 9 1395 $char eq "*" or $char eq "["
202 18 222 1087 $char eq "^" or $PPI::Token::Unknown::MAGIC{$c . $char}
396 47 25 235 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast")
72 62 173 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast") or $token->isa("PPI::Token::Operator")
87 7 166 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast") or $token->isa("PPI::Token::Operator") or $token->isa("PPI::Token::Label")
404 10 57 0 not $token or $token->content ne "->"
433 621 0 0 !$p2 || $p2->isa('PPI::Token::Structure') || $p2->isa('PPI::Token::Whitespace') && $p2->content eq ''