Branch Coverage

blib/lib/Perl/Lint/Policy/Subroutines/RequireFinalReturn.pm
Criterion Covered Total %
branch 57 64 89.0


line true false branch
24 17 25 if ($token_type == 63)
27 37 61 if ($token_type == 109) { }
1 60 elsif ($token_type == 106) { }
28 1 36 if ($$tokens[$i + 1]{'type'} == 110)
40 3 166 if ($token_type == 109) { }
39 127 elsif ($token_type == 110) { }
24 103 elsif ($token_type == 96 or $token_type == 98 or $token_type == 97 or $token_type == 99) { }
2 101 elsif ($token_type == 133 or $token_type == 134 or $token_type == 132 or $token_type == 100) { }
9 92 elsif ($token_type == 0 or $token_type == 85) { }
6 86 elsif ($token_type == 70) { }
8 78 elsif ($token_type == 122) { }
2 150 elsif ($token_type == 127 and $token_data eq 'Carp') { }
45 36 3 if (--$left_brace_num <= 0)
46 15 6 unless ($is_returned or $is_returned_in_cond)
71 24 118 if ($token_type == 109) { }
24 94 elsif ($token_type == 110) { }
16 78 elsif ($token_type == 0 or $token_type == 85) { }
2 152 elsif ($token_type == 122 and any sub { $_ eq $token_data; } , @terminal_funcs) { }
75 6 18 unless ($is_returned_in_cond_locally)
97 1 8 if ($constant_loop{$left_brace_num})
104 0 6 if ($constant_loop{$left_brace_num})
108 4 0 if ($token_data eq 'die' or $token_data eq 'exec' or $token_data eq 'exit')
114 3 3 if ($$next_token{'kind'} == 17)
122 0 8 if ($constant_loop{$left_brace_num})
126 4 4 if ($token_data eq 'croak' or $token_data eq 'confess' or any sub { $_ eq $token_data; } , @terminal_funcs) { }
2 2 elsif ($token_data eq 'throw') { }
132 1 3 if (($$next_token{'kind'} || -1) == 17) { }
138 0 3 if (($$next_token{'kind'} || -1) == 17)
147 1 1 if ($$target_token{'kind'} == 17)
155 0 2 if ($constant_loop{$left_brace_num})
160 2 0 if ($$target_token{'type'} == 127)
162 2 0 if ($target_token_data eq 'croak' or $target_token_data eq 'confess')