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 38 370 20 $prev and $prev->isa("PPI::Token::Number")
83 1 33 2 $prev and $prev->isa("PPI::Token::Operator")
34 1 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
106 84 13 28 $prev and $prev->isa("PPI::Token::Operator")
97 26 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
153 1 9 1 $prev and $prev->isa("PPI::Token::Operator")
10 0 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
200 3 26 4 $prev and $prev->isa("PPI::Token::Operator")
29 2 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
237 37 374 9 $prev and $prev->isa("PPI::Token::Number")
265 1 12 2 $prev and $prev->isa("PPI::Token::Operator")
13 1 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
281 31 186 11 $prev and $prev->isa("PPI::Token::Number")
367 453 35 34 $extra_check and not &$extra_check($token)
384 253 64 37 $token->isa("PPI::Token::Structure") and $token->content eq "}"
416 2 19 5 $token->isa('PPI::Token::Word') && ($content eq 'do' || $content eq 'eval')
423 253 13 51 $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 1 328 627 $p1 and $p1->isa("PPI::Token::Word")
329 3 624 $p1 and $p1->isa("PPI::Token::Word") and $p1->content eq "sub"
331 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 35 35 809 $char eq "*" or $char eq "="
104 10 115 17482 $char eq "*" or $char eq "#"
119 20 11 1028 $char eq ")" or $char eq "="
31 10 1018 $char eq ")" or $char eq "=" or $char eq ","
198 20 13 1469 $char eq "*" or $char eq "["
229 23 223 1143 $char eq "^" or $PPI::Token::Unknown::MAGIC{$c . $char}
423 51 24 242 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast")
75 59 183 $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")
83 6 177 $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 64 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 ''