Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitDuplicateHashKeys.pm
Criterion Covered Total %
condition 23 36 63.8


and 3 conditions

line !l l&&!r l&&r condition
102 224 0 2 $elem->isa('PPI::Token::Cast') and $elem eq '%'
108 12 208 4 @arg == 1 and $elem->isa('PPI::Token::Symbol')
220 1 3 @arg == 1 and $elem->isa('PPI::Token::Symbol') and $elem->raw_type eq '%'
116 212 4 5 $state eq 'unknown' and $comma eq '=>'
133 0 7 104 defined $str and not $any_vars
7 64 40 defined $str and not $any_vars and $seen_key{$str}++
207 4 0 39 $elem->isa('PPI::Token::Operator') and $elem eq '='
217 0 0 0 $elem->isa('PPI::Token::Cast') && $elem eq '%'

or 2 conditions

line l !l condition
73 53 1 $elem->schild(0) || (return)
75 53 0 $elem->schild(0) || (return)
205 43 0 $elem->sprevious_sibling || (return 0)
210 39 0 $elem->sprevious_sibling || (return 0)
215 0 0 $elem->sprevious_sibling || (return 0)
229 0 0 $elem->sprevious_sibling || (return 0)