Branch Coverage

blib/lib/Perl/Critic/Policy/Variables/RequireLexicalLoopIterators.pm
Criterion Covered Total %
branch 10 12 83.3


line true false branch
44 8 18 if $elem->type ne "foreach"
47 0 18 unless $first_child
48 6 12 $first_child->isa('PPI::Token::Label') ? :
51 0 18 unless $potential_scope
52 4 14 if $potential_scope->isa("PPI::Structure::List")
54 10 4 if $potential_scope eq "my"