Branch Coverage

blib/lib/Perl/Critic/Policy/Variables/ProhibitTopicIterator.pm
Criterion Covered Total %
branch 32 44 72.7


line true false branch
27 0 24 unless ($elem->isa("PPI::Statement::Compound"))
29 0 24 unless ($node->isa("PPI::Token::Word"))
32 0 24 unless ($next)
34 18 6 if ($type =~ /^for(?:each)?$/) { }
6 0 elsif ($type =~ /^(?:if|while)$/ and $next->isa('PPI::Structure::Condition')) { }
35 2 16 if ($next->isa("PPI::Structure::List"))
36 2 14 if ($next->isa("PPI::Token::Magic") and $next->content eq "\$_")
37 6 8 if ($next->isa("PPI::Structure::For"))
38 2 4 if ($next->find_first(sub {
40 34 2 unless ($e->isa("PPI::Token::Magic"))
41 0 2 if ($e->content ne "\$_")
43 0 2 unless ($ne)
44 0 2 unless ($ne->isa("PPI::Token::Operator"))
45 0 2 if ($ne->content ne "=")
50 4 4 if ($next->isa("PPI::Token::Symbol"))
51 4 0 if ($next->isa("PPI::Token::Word") and $next->content eq "my")
54 2 4 if ($next->find_first(sub {
56 29 3 unless ($e->isa("PPI::Token::Magic"))
57 0 3 if ($e->content ne "\$_")
59 0 3 unless ($ne)
60 0 3 unless ($ne->isa("PPI::Token::Operator"))
61 1 2 if ($ne->content ne "=")