Branch Coverage

blib/lib/Test/Requires/Scanner.pm
Criterion Covered Total %
branch 42 48 87.5


line true false branch
19 0 0 unless open my $fh, '<', $file
57 15 113 if ($token_type == 93)
62 98 15 if ($walker->is_in_usedecl)
65 10 88 if ($token_type == 94 or $token_type == 106)
75 40 48 if ($token_type == 127 || $token_type == 126 and $walker->is_prev_module_name)
77 37 3 if ($walker->module_name =~ /^Test(?:\:\:(?:Requires)?)?$/) { }
87 0 48 if (not $walker->module_name || $walker->does_garbage_exist and _looks_like_version($token_type))
96 48 0 if ($walker->is_in_test_requires)
102 1 47 if ($token_type == 147) { }
2 45 elsif ($walker->is_in_reglist) { }
3 42 elsif ($token_type == 107) { }
3 39 elsif ($token_type == 108) { }
7 32 elsif ($walker->is_in_list) { }
3 29 elsif ($token_type == 109) { }
3 26 elsif ($token_type == 110) { }
14 12 elsif ($walker->is_in_hash) { }
5 7 elsif (_is_string($token_type)) { }
107 1 1 if ($token_type == 186)
125 5 2 if ($token_type == 172 or $token_type == 173)
141 2 6 if (_is_string($token_type) or $token_type == 122 or _looks_like_version($token_type))
144 4 4 if ($walker->hash_count % 2) { }
164 0 0 if ($token_type != 209)
178 22 4 unless $token_type == 172
183 6 1 unless $token_type == 171 or $token_type == 170