Condition Coverage

blib/lib/Perl/Critic/Policy/Modules/ProhibitConditionalUseStatements.pm
Criterion Covered Total %
condition 23 27 85.1


and 3 conditions

line !l l&&!r l&&r condition
33 28 80 29 $elem->type eq "use" and not $elem->pragma
108 0 29 $elem->type eq "use" and not $elem->pragma and $elem->module
80 7 22 $elem->type eq "use" and not $elem->pragma and $elem->module and $self->_is_in_conditional_logic($elem)
48 2 3 1 $first_elem->isa("PPI::Token::Word") and $first_elem eq "eval"
61 10 5 11 $prev_sibling->isa("PPI::Token::Word") and $prev_sibling eq "do"
63 5 0 6 $next_sibling and $next_sibling->isa("PPI::Token::Word")
67 0 0 4 $prev_sibling->isa("PPI::Token::Operator") and $OPS{$prev_sibling->content}

or 3 conditions

line l !l&&r !l&&!r condition
91 11 1 32 $self->_is_compound_statement($elem) or $self->_is_eval($elem)
12 10 22 $self->_is_compound_statement($elem) or $self->_is_eval($elem) or $self->_is_in_do_conditional_block($elem)