Condition Coverage

blib/lib/PPI/Token/Unknown.pm
Criterion Covered Total %
condition 89 96 92.7


and 3 conditions

line !l l&&!r l&&r condition
64 35 379 15 $prev and $prev->isa("PPI::Token::Number")
83 2 33 3 $prev and $prev->isa("PPI::Token::Operator")
35 2 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
106 86 9 24 $prev and $prev->isa("PPI::Token::Operator")
95 22 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
153 1 7 4 $prev and $prev->isa("PPI::Token::Operator")
8 3 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
200 3 23 3 $prev and $prev->isa("PPI::Token::Operator")
26 1 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
237 36 408 8 $prev and $prev->isa("PPI::Token::Number")
265 1 4 2 $prev and $prev->isa("PPI::Token::Operator")
5 1 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
281 24 158 9 $prev and $prev->isa("PPI::Token::Number")
367 449 34 25 $extra_check and not &$extra_check($token)
384 260 59 35 $token->isa("PPI::Token::Structure") and $token->content eq "}"
416 1 18 5 $token->isa('PPI::Token::Word') && ($content eq 'do' || $content eq 'eval')
423 260 10 49 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content}
453 0 956 0 $p0->isa("PPI::Token::Word") and $p0->content eq "sub"
460 0 329 627 $p1 and $p1->isa("PPI::Token::Word")
329 3 624 $p1 and $p1->isa("PPI::Token::Word") and $p1->content eq "sub"
332 624 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 37 37 820 $char eq "*" or $char eq "="
104 10 109 17446 $char eq "*" or $char eq "#"
119 21 11 1048 $char eq ")" or $char eq "="
32 15 1033 $char eq ")" or $char eq "=" or $char eq ","
198 18 11 1464 $char eq "*" or $char eq "["
229 20 223 1140 $char eq "^" or $PPI::Token::Unknown::MAGIC{$c . $char}
423 49 27 243 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast")
76 72 171 $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")
99 6 165 $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")
431 11 62 0 not $token or $token->content ne "->"
460 624 0 0 !$p2 || $p2->isa('PPI::Token::Structure') || $p2->isa('PPI::Token::Whitespace') && $p2->content eq ''