Branch Coverage

blib/lib/Perl/Critic/Policy/CodeLayout/ProhibitParensWithBuiltins.pm
Criterion Covered Total %
branch 8 42 19.0


line true false branch
63 96 233 if exists $ALLOW{$elem}
64 162 71 unless is_perl_builtin($elem)
65 3 68 unless is_function_call($elem)
68 0 68 unless $sibling
69 0 68 if ($sibling->isa("PPI::Structure::List"))
72 0 0 if _is_named_unary_with_operator_inside_parens_exemption($elem, $sibling)
73 0 0 if _is_named_unary_with_operator_following_parens_exemption($elem, $elem_after_parens)
74 0 0 if _is_precedence_exemption($elem_after_parens)
75 0 0 if _is_equals_exemption($sibling)
76 0 0 if _is_sort_exemption($elem, $sibling)
92 0 0 if (_is_named_unary($elem) and $elem_after_parens)
95 0 0 if defined $precedence and $precedence < $PRECEDENCE_OF_LIST
116 0 0 if ($elem_after_parens)
119 0 0 if defined $precedence and $precedence <= $PRECEDENCE_OF_COMMA
132 0 0 if (my $first_op = $sibling->find_first("PPI::Token::Operator"))
133 0 0 if $first_op eq "="
146 0 0 if ($elem eq "sort")
148 0 0 if ($first_arg and $first_arg->isa("PPI::Statement::Expression"))
151 0 0 if ($first_arg and $first_arg->isa("PPI::Token::Word"))
153 0 0 if $next_arg and $next_arg->isa("PPI::Structure::List")
172 0 0 if $parens->find_first("PPI::Token::Operator")