Condition Coverage

blib/lib/PPI/Token/Word.pm
Criterion Covered Total %
condition 42 45 93.3


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 10 0 1 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
208 56292 53 260 $word =~ /^(\w+)'/ and $PPI::Token::Word::KEYWORDS{$1}
273 21878 25731 6624 $PPI::Token::Word::KEYWORDS{$word} and $t->__current_token_is_forced_word
43108 1890 0 $PPI::Token::Word::OPERATOR{$word} and $word ne 'x' || $t->_current_x_is_operator
297 122 628 624 $tokens[0] and $tokens[0]{'content'} eq "sub"
122 320 308 $tokens[0] && $tokens[0]->isa('PPI::Token::Operator')
344 10678 45945 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 1611 37 242 $word ne 'x' || $t->_current_x_is_operator