Branch Coverage

blib/lib/Perl/Lint/Policy/ControlStructures/ProhibitUnreachableCode.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
46 38 290 if ($token_type == 109)
51 37 253 if ($token_type == 110)
52 17 20 if (my $unreachable_token = $unreachable_token_by_depth{$depth})
70 39 214 if ($token_type == 122 || $token_type == 70 and $control_statement_to_exit{$token_data} or $control_statement_token_types_to_exit{$token_type})
74 1 38 if ($is_exited_by_depth{$depth})
80 5 33 if ($conditional_token_types{$before_token->{'type'}} or $before_token->{'type'} == 60 and $before_token->{'data'} eq '//')
91 27 13 if ($token_type == 106)
95 6 7 if ($token_type == 96 or $token_type == 99)
105 23 191 if ($token_type == 122)
107 5 18 if ($token->{'type'} == 105)
115 1 190 if ($token_type == 128)
121 2 187 if ($token_type == 93 or $token_type == 91 or $token_type == 70 and $token_data eq 'no')
128 3 3 if ($token_type == 106)
135 11 176 if ($token_type == 63 or $token_type == 75 and $token_data eq 'BEGIN')
142 11 10 if ($token_type == 109)
152 44 132 if ($is_exited_by_depth{$depth} and not $is_in_ignore_context_by_depth{$depth})
158 1 8 if (my $unreachable_token = $unreachable_token_by_depth{$depth})