Condition Coverage

blib/lib/PPI/Token/Unknown.pm
Criterion Covered Total %
condition 84 90 93.3


and 3 conditions

line !l l&&!r l&&r condition
64 32 370 21 $prev and $prev->isa("PPI::Token::Number")
83 1 32 3 $prev and $prev->isa("PPI::Token::Operator")
33 2 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
106 84 12 52 $prev and $prev->isa("PPI::Token::Operator")
96 50 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
144 1 8 4 $prev and $prev->isa("PPI::Token::Operator")
9 3 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
182 2 22 6 $prev and $prev->isa("PPI::Token::Operator")
24 4 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
210 39 387 7 $prev and $prev->isa("PPI::Token::Number")
238 1 3 6 $prev and $prev->isa("PPI::Token::Operator")
4 5 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
254 29 163 6 $prev and $prev->isa("PPI::Token::Number")
340 433 34 50 $extra_check and not &$extra_check($token)
357 261 45 37 $token->isa("PPI::Token::Structure") and $token->content eq "}"
389 1 18 5 $token->isa('PPI::Token::Word') && ($content eq 'do' || $content eq 'eval')
396 261 6 39 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content}
426 0 936 0 $p0->isa("PPI::Token::Word") and $p0->content eq "sub"
433 2 310 624 $p1 and $p1->isa("PPI::Token::Word")
312 3 621 $p1 and $p1->isa("PPI::Token::Word") and $p1->content eq "sub"
313 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 35 33 804 $char eq "*" or $char eq "="
104 10 138 16844 $char eq "*" or $char eq "#"
180 24 6 1446 $char eq "*" or $char eq "["
202 17 218 1137 $char eq "^" or $PPI::Token::Unknown::MAGIC{$c . $char}
396 39 31 236 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast")
70 63 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")
94 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 12 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 ''