Branch Coverage

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


line true false branch
33 326 3 if $elem->content ne "grep"
34 3 0 unless is_function_call($elem)
35 0 0 unless _is_in_boolean_context($elem)
52 0 0 unless $prev
53 0 0 if $prev->isa("PPI::Token::Word") and $POSTFIX_CONDITIONALS{$prev}
54 0 0 unless $prev->isa("PPI::Token::Operator") and $BOOLEAN_OPERATORS{$prev}
56 0 0 unless $next
59 0 0 unless $next->isa("PPI::Structure::List")
62 0 0 unless $next
63 0 0 if $next->isa("PPI::Token::Operator") and $BOOLEAN_OPERATORS{$next}
71 0 0 if $prev
74 0 0 if $node->isa("PPI::Structure::List")
75 0 0 if $node->isa("PPI::Structure::Condition")