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 11 0 0 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
208 55427 55 262 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
273 21338 25277 6621 $PPI::Token::Word::KEYWORDS{$word} and $t->__current_token_is_forced_word
42091 1819 0 $PPI::Token::Word::OPERATOR{$word} and $word ne 'x' || $t->_current_x_is_operator
297 118 402 621 $tokens[0] and $tokens[0]{'content'} eq "sub"
342 10756 45005 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 1534 38 247 $word ne 'x' || $t->_current_x_is_operator