Condition Coverage

blib/lib/File/PackageIndexer/PPI/Util.pm
Criterion Covered Total %
condition 33 51 64.7


and 3 conditions

line !l l&&!r l&&r condition
63 0 0 0 defined $token and ref $token
74 0 37 0 @ch and $ch[-1]->isa('PPI::Token::Operator') || $ch[-1]->content =~ /^(?:,|=>)$/
83 174 0 0 $token->isa('PPI::Token::Structure') and $token->content eq ';'
88 70 100 4 $state eq 'key' || $state eq 'value' and $token->isa('PPI::Token::QuoteLike::Words')
152 0 320 0 defined $token and ref $token
163 4 103 0 @ch and $ch[-1]->isa('PPI::Token::Operator') || $ch[-1]->content =~ /^(?:,|=>)$/
173 311 0 78 $token->isa('PPI::Token::Structure') and $token->content eq ';'
258 53 1 1101 $next and $token->content =~ /^[\w:]+$/
54 936 165 $next and $token->content =~ /^[\w:]+$/ and $next->isa('PPI::Token::Operator')
937 153 12 $next and $token->content =~ /^[\w:]+$/ and $next->isa('PPI::Token::Operator') and $next->content eq '->'

or 3 conditions

line l !l&&r !l&&!r condition
70 34 0 174 $token->isa('PPI::Statement') or $token->isa('PPI::Structure::List')
74 3 0 34 $ch[-1]->isa('PPI::Token::Operator') || $ch[-1]->content =~ /^(?:,|=>)$/
88 52 52 70 $state eq 'key' || $state eq 'value'
159 61 40 389 $token->isa('PPI::Statement') or $token->isa('PPI::Structure::List')
163 6 0 97 $ch[-1]->isa('PPI::Token::Operator') || $ch[-1]->content =~ /^(?:,|=>)$/
254 1155 0 0 $token->isa('PPI::Token::Word') or $token->isa('PPI::Token::Symbol')
267 12 0 0 $third->isa('PPI::Token::Word') or $third->isa('PPI::Token::Symbol')