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 40 356 19 $prev and $prev->isa("PPI::Token::Number")
83 1 33 3 $prev and $prev->isa("PPI::Token::Operator")
34 2 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
106 84 21 50 $prev and $prev->isa("PPI::Token::Operator")
105 48 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
144 1 5 2 $prev and $prev->isa("PPI::Token::Operator")
6 1 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
182 2 20 10 $prev and $prev->isa("PPI::Token::Operator")
22 8 2 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
210 35 381 7 $prev and $prev->isa("PPI::Token::Number")
238 2 5 7 $prev and $prev->isa("PPI::Token::Operator")
7 6 1 $prev and $prev->isa("PPI::Token::Operator") and $prev->content eq "->"
254 32 174 13 $prev and $prev->isa("PPI::Token::Number")
340 421 34 23 $extra_check and not &$extra_check($token)
357 239 52 35 $token->isa("PPI::Token::Structure") and $token->content eq "}"
389 2 18 5 $token->isa('PPI::Token::Word') && ($content eq 'do' || $content eq 'eval')
396 239 5 47 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content}
426 0 645 0 $p0->isa("PPI::Token::Word") and $p0->content eq "sub"
433 2 19 624 $p1 and $p1->isa("PPI::Token::Word")
21 3 621 $p1 and $p1->isa("PPI::Token::Word") and $p1->content eq "sub"
22 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 36 36 801 $char eq "*" or $char eq "="
104 14 141 16589 $char eq "*" or $char eq "#"
180 22 10 1395 $char eq "*" or $char eq "["
202 15 212 1101 $char eq "^" or $PPI::Token::Unknown::MAGIC{$c . $char}
396 47 22 222 $token->isa("PPI::Token::Structure") and $list_start_or_term_end{$token->content} or $token->isa("PPI::Token::Cast")
69 60 162 $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")
82 6 156 $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 11 61 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 ''