Branch Coverage

blib/lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitBooleanGrep.pm
Criterion Covered Total %
branch 26 26 100.0


line true false branch
33 360 28 if $elem->content ne "grep"
34 4 24 unless is_function_call($elem)
35 12 12 unless _is_in_boolean_context($elem)
52 10 14 unless $prev
53 4 1 if $prev->isa("PPI::Token::Word") and $POSTFIX_CONDITIONALS{$prev}
54 4 6 unless $prev->isa("PPI::Token::Operator") and $BOOLEAN_OPERATORS{$prev}
56 1 5 unless $next
59 1 4 unless $next->isa("PPI::Structure::List")
62 1 3 unless $next
63 1 1 if $next->isa("PPI::Token::Operator") and $BOOLEAN_OPERATORS{$next}
71 6 10 if $prev
74 4 18 if $node->isa("PPI::Structure::List")
75 4 14 if $node->isa("PPI::Structure::Condition")