Branch Coverage

blib/lib/Perl/Critic/Policy/CodeLayout/RequireKRParens.pm
Criterion Covered Total %
branch 26 28 92.8


line true false branch
23 27 10 if $elem->isa('PPI::Token::Word')
24 5 5 if $elem->isa('PPI::Structure::Condition')
33 3 2 if (ref $prev and not $prev->isa('PPI::Token::Whitespace'))
39 2 3 if (ref $next and not $next->isa('PPI::Token::Whitespace') and not _is_end_of_statement($next))
49 3 24 if is_perl_builtin($elem)
50 12 2 unless is_function_call($elem) or is_method_call($elem)
54 1 11 if ref $parens and not $parens->isa('PPI::Structure::List')
57 4 7 if (ref $next_sib and $next_sib->isa('PPI::Token::Whitespace'))
69 1 3 $type eq 'for' ? :
1 4 $type eq 'foreach' ? :
76 2 0 if (ref $prev and not $prev->isa('PPI::Token::Whitespace'))
82 1 1 if (ref $next and not $next->isa('PPI::Token::Whitespace'))
92 0 4 unless ref $elem
93 2 2 unless $elem->isa('PPI::Token::Structure')