Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
229 0 0 0 $self->{'_all_integers_allowed'} && int $literal == $literal
0 0 0 defined $literal and not $self->{'_all_integers_allowed'} && int $literal == $literal
0 0 0 defined $literal and not $self->{'_all_integers_allowed'} && int $literal == $literal and not defined $self->{'_allowed_values'}{$literal}
0 0 0 _element_is_sole_component_of_a_subscript($elem) && $literal == $SPECIAL_ARRAY_SUBSCRIPT_EXEMPTION
0 0 0 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 0 0 $parent and $parent->isa("PPI::Statement::Expression")
288 0 0 0 $grandparent and $grandparent->isa("PPI::Structure::Subscript")
310 0 0 0 scalar @variables == 1 and $variables[0] eq "\$VERSION"

or 2 conditions

line l !l condition
145 0 0 $increment ||= 1