Branch Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitListsInMultiConstants.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
19 0 5 unless $elem->pragma
20 0 5 if $elem->module ne 'constant'
23 0 5 unless $hash
24 2 3 unless $hash->isa('PPI::Structure::Constructor')
25 0 3 if $hash->braces ne '{}'
30 3 63 if ($el->isa('PPI::Structure::List'))
31 2 1 _is_function_arg($el) ? :
33 1 62 if $el->isa('PPI::Token::QuoteLike::Words')
36 58 4 unless $el->isa('PPI::Statement::Expression')
37 0 4 if $el->parent->isa('PPI::Statement::Expression')
41 2 1 unless $lists_ref
53 1 2 unless $prev->isa('PPI::Token::Word')