Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitMismatchedOperators.pm
Criterion Covered Total %
condition 33 38 86.8


and 3 conditions

line !l l&&!r l&&r condition
81 45 31 92 !defined($leading_operator_compatibility) || $leading_operator_compatibility->[$operator_type] and !defined($next_compatibility) || $next_compatibility->[$operator_type]
90 32 0 44 $operator_type and defined $leading_operator_compatibility
32 15 29 $operator_type and defined $leading_operator_compatibility and not $leading_operator_compatibility->[$operator_type]
15 25 4 $operator_type and defined $leading_operator_compatibility and not $leading_operator_compatibility->[$operator_type] and $self->_have_stringy_x($leading_operator)
139 30 91 48 $previous_sibling and $self->_is_file_operator($previous_sibling)
166 0 124 16 $elem_operator and $elem_operator eq $TOKEN_COMPATIBILITY_SPECIAL_STRING_OPERATOR
124 8 8 $elem_operator and $elem_operator eq $TOKEN_COMPATIBILITY_SPECIAL_STRING_OPERATOR and $SPECIAL_STRING_VALUES{lc($element_1->content // 0)}
132 0 8 $elem_operator and $elem_operator eq $TOKEN_COMPATIBILITY_SPECIAL_STRING_OPERATOR and $SPECIAL_STRING_VALUES{lc($element_1->content // 0)} and $element_2->isa("PPI::Token::Number")
8 2 6 $elem_operator and $elem_operator eq $TOKEN_COMPATIBILITY_SPECIAL_STRING_OPERATOR and $SPECIAL_STRING_VALUES{lc($element_1->content // 0)} and $element_2->isa("PPI::Token::Number") and $element_2->content == 0
169 66 66 2 not $check_recursive and $self->_is_special_string_number_addion($elem_operator, $element_2, $element_1, 1)

or 2 conditions

line l !l condition
166 16 0 $element_1->content // 0

or 3 conditions

line l !l&&r !l&&!r condition
81 1 122 45 !defined($leading_operator_compatibility) || $leading_operator_compatibility->[$operator_type]
0 92 31 !defined($next_compatibility) || $next_compatibility->[$operator_type]