Condition Coverage

blib/lib/PPI/Token/Word.pm
Criterion Covered Total %
condition 38 42 90.4


and 3 conditions

line !l l&&!r l&&r condition
80 11 3 8 $previous and $previous->isa("PPI::Token::Operator")
14 4 4 $previous and $previous->isa("PPI::Token::Operator") and $previous->content eq "->"
93 5 1 5 $snext->isa("PPI::Token::Operator") and $snext->content eq ',' || $snext->content eq '=>'
108 2 3 1 $snext->isa("PPI::Token::Word") and $snext->content =~ / \w :: \z /msx
131 8 0 0 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
208 55051 50 259 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
273 21092 25143 6625 $PPI::Token::Word::KEYWORDS{$word} and $t->__current_token_is_forced_word
41746 1805 0 $PPI::Token::Word::OPERATOR{$word} and $word ne 'x' || $t->_current_x_is_operator
297 120 394 621 $tokens[0] and $tokens[0]{'content'} eq "sub"
342 10735 44640 0 $tokens[0] && ($tokens[0]{'_attribute'} || $tokens[0]->isa('PPI::Token::Attribute'))

or 3 conditions

line l !l&&r !l&&!r condition
93 1 3 11 $snext->isa("PPI::Structure::List") or $snext->isa("PPI::Token::Structure")
4 1 1 $snext->content eq ',' || $snext->content eq '=>'
4 7 4 $snext->isa("PPI::Structure::List") or $snext->isa("PPI::Token::Structure") or $snext->isa("PPI::Token::Operator") and $snext->content eq ',' || $snext->content eq '=>'
273 1525 36 244 $word ne 'x' || $t->_current_x_is_operator