Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitMagicNumbers.pm
Criterion Covered Total %
condition 21 26 80.7


and 3 conditions

line !l l&&!r l&&r condition
229 154 7 11 $self->{'_all_integers_allowed'} && int $literal == $literal
0 11 161 defined $literal and not $self->{'_all_integers_allowed'} && int $literal == $literal
11 123 38 defined $literal and not $self->{'_all_integers_allowed'} && int $literal == $literal and not defined $self->{'_allowed_values'}{$literal}
36 1 1 _element_is_sole_component_of_a_subscript($elem) && $literal == $SPECIAL_ARRAY_SUBSCRIPT_EXEMPTION
134 1 37 defined $literal and not $self->{'_all_integers_allowed'} && int $literal == $literal and not defined $self->{'_allowed_values'}{$literal} and not _element_is_sole_component_of_a_subscript($elem) && $literal == $SPECIAL_ARRAY_SUBSCRIPT_EXEMPTION
282 0 25 13 $parent and $parent->isa("PPI::Statement::Expression")
288 0 0 2 $grandparent and $grandparent->isa("PPI::Structure::Subscript")
310 1 0 57 scalar @variables == 1 and $variables[0] eq "\$VERSION"

or 2 conditions

line l !l condition
145 2 6 $increment ||= 1