Branch Coverage

blib/lib/Perl/Lint/Policy/BuiltinFunctions/ProhibitSleepViaSelect.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
21 12 62 if ($token_type == 70 and $token_data eq 'select')
28 3 9 if ($token->{'type'} == 107) { }
31 0 26 if ($token_type == 107) { }
3 23 elsif ($token_type == 108) { }
9 14 elsif ($token_type == 104) { }
35 3 0 if (--$left_paren_num <= 0)
37 2 0 if (not $is_on_some_IO and $comma_num == 3 and $last_arg_type == 171 || $last_arg_type != 207 && $last_arg->{'kind'} == 24)
53 3 11 if ($comma_num < 3 and $token_type != 207)
63 9 63 if ($token_type == 106) { }
27 36 elsif ($token_type == 104) { }
64 9 0 if (--$left_paren_num <= 0)
66 6 0 if (not $is_on_some_IO and $comma_num == 3 and $last_arg_type == 171 || $last_arg_type != 207 && $last_arg->{'kind'} == 24)
82 3 33 if ($comma_num < 3 and $token_type != 207)