Condition Coverage

blib/lib/Perl/Critic/Policy/Freenode/MultidimensionalArrayEmulation.pm
Criterion Covered Total %
condition 43 54 79.6


and 3 conditions

line !l l&&!r l&&r condition
23 0 4 30 $elem->complete and $elem->braces eq '{}'
26 0 0 30 @contents == 1 and $contents[0]->isa('PPI::Statement::Expression')
29 10 14 6 @contents > 1 and $contents[0]->isa('PPI::Token::Word')
24 2 4 @contents > 1 and $contents[0]->isa('PPI::Token::Word') and not $contents[1]->isa('PPI::Structure::List')
1 0 3 $contents[1]->isa('PPI::Token::Operator') && ($contents[1] eq ',' || $contents[1] eq '=>')
16 3 1 @contents > 1 and $contents[0]->isa('PPI::Token::Word') and not $contents[1]->isa('PPI::Structure::List') and not $contents[1]->isa('PPI::Token::Operator') && ($contents[1] eq ',' || $contents[1] eq '=>')
36 30 0 3 $_->isa('PPI::Token::QuoteLike::Words') and (my(@words) = $_->literal) > 1
32 16 3 $_->isa('PPI::Token::Operator') and $_ eq ',' || $_ eq '=>'
42 0 19 2 $prev and $prev->isa('PPI::Token::Cast')
19 0 2 $prev and $prev->isa('PPI::Token::Cast') and $prev eq '@' || $prev eq '%'
48 25 8 1 $found_symbol and not $prev->isa('PPI::Token::Cast')
49 8 0 8 $found_symbol and $prev->isa('PPI::Token::Cast')
57 1 0 5 $prev->isa('PPI::Token::Operator') and $prev eq '->'
61 2 11 6 $cast and $cast eq '@' || $cast eq '%'

or 3 conditions

line l !l&&r !l&&!r condition
36 15 3 1 $_ eq ',' || $_ eq '=>'
42 1 1 0 $prev eq '@' || $prev eq '%'
57 2 6 0 $prev->isa('PPI::Structure::Subscript') or $prev->isa('PPI::Token::Operator') and $prev eq '->'
61 5 1 11 $cast eq '@' || $cast eq '%'