Branch Coverage

blib/lib/Perl/Critic/Policy/Modules/ProhibitConditionalUseStatements.pm
Criterion Covered Total %
branch 2 26 7.6


line true false branch
33 0 1 if $elem->type eq "use" and not $elem->pragma and $elem->module and $self->_is_in_conditional_logic($elem)
46 0 0 unless $elem->isa("PPI::Statement")
48 0 0 if $first_elem->isa("PPI::Token::Word") and $first_elem eq "eval"
59 0 0 unless $elem->isa("PPI::Structure::Block")
60 0 0 unless my $prev_sibling = $elem->sprevious_sibling
61 0 0 if ($prev_sibling->isa("PPI::Token::Word") and $prev_sibling eq "do")
63 0 0 if $next_sibling and $next_sibling->isa("PPI::Token::Word")
65 0 0 unless $prev_sibling = $prev_sibling->sprevious_sibling
67 0 0 if $prev_sibling->isa("PPI::Token::Operator") and $OPS{$prev_sibling->content}
78 0 0 unless $elem->isa("PPI::Statement::Compound")
79 0 0 if $elem->type ne "continue"
90 1 0 if $elem->isa("PPI::Document")
91 0 0 if $self->_is_compound_statement($elem) or $self->_is_eval($elem) or $self->_is_in_do_conditional_block($elem)