Branch Coverage

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


line true false branch
48 168 438 if ($token_kind == 1 or $token_kind == 2) { }
59 379 elsif ($token_type == 89) { }
51 62 106 if ($numeric_ops{$token_data}) { }
34 72 elsif ($string_ops{$token_data}) { }
58 72 34 unless ($is_in_numeric_context or $is_in_string_context)
70 0 46 if ($before_token_type == 166 or $before_token_type == 168 or $before_token_type == 169 or $before_token_type == 194 or $before_token_type == 195 or $before_token_type == 196)
83 0 75 if ($next_token_type == 166 or $next_token_type == 168 or $next_token_type == 169 or $next_token_type == 194 or $next_token_type == 195 or $next_token_type == 196)
95 14 82 if ($is_before_token_variable and $is_next_token_variable)
104 14 68 if ($before_token_type == 170 or $before_token_type == 171)
106 4 10 if ($$tokens[$i - 2]{'type'} == 19)
112 49 33 if ($next_token_type == 170 or $next_token_type == 171)
116 48 34 if ($is_in_numeric_context) { }
34 0 elsif ($is_in_string_context) { }
117 24 0 unless ($is_before_token_numeric || $is_before_token_variable and $is_next_token_numeric || $is_next_token_variable)
131 15 19 if ($is_before_token_numeric and not $is_before_token_variable or $is_next_token_numeric and not $is_next_token_variable)
146 59 0 if ($file_operators{$token_data})
150 55 64 if ($token_kind == 1) { }
4 60 elsif ($token_type == 106) { }
151 30 25 if ($string_ops{$token->{'data'}})