Condition Coverage

blib/lib/PPI/Token/Word.pm
Criterion Covered Total %
condition 41 45 91.1


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 55328 44 260 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
273 21430 25210 6625 $PPI::Token::Word::KEYWORDS{$word} and $t->__current_token_is_forced_word
42155 1797 0 $PPI::Token::Word::OPERATOR{$word} and $word ne 'x' || $t->_current_x_is_operator
297 123 575 621 $tokens[0] and $tokens[0]{'content'} eq "sub"
123 282 293 $tokens[0] && $tokens[0]->isa('PPI::Token::Operator')
344 10664 44981 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 1541 35 221 $word ne 'x' || $t->_current_x_is_operator