Branch Coverage

blib/lib/Geo/OLC.pm
Criterion Covered Total %
branch 49 58 84.4


line true false branch
84 12 341 unless grep(($_ == $plus), 0, 2, 4, 6, 8)
87 29 312 if (index($code, '0') > -1)
88 12 17 if $post ne ''
91 313 16 if ($pre)
92 0 313 if length($pre) % 2
93 6 307 unless $pre =~ /^[$radix]+$/o
95 231 92 if ($post)
96 12 219 if length $post == 1
97 6 213 unless $post =~ /^[$radix]+$/o
99 6 299 if $pre . $post eq ''
111 18 16 unless is_valid($code)
124 18 239 unless is_valid($code)
125 33 206 unless index($code, '+') == 8
128 0 206 if uc substr($code, 0, 1) gt 'C'
129 0 206 if uc substr($code, 1, 1) gt 'V'
148 169 676 if $i == 4
156 9 160 if ($len < 10) { }
3 157 elsif ($len > 10) { }
190 0 179 unless (is_full($code))
208 56 822 if $i > $len
254 0 11 unless is_valid($code)
255 0 11 unless is_full($code)
261 11 14 if $distance < $LON[$dist] * 0.3
278 0 17 unless (is_valid($code))
282 0 17 if is_full($code)
297 61 92 if ($tmpdist < $distance)
315 9 18 if ($code =~ /(0+)\+$/) { }
327 0 197 if ($len <= 10 and $len % 2)
332 3 194 if $lat == 90