Branch Coverage

blib/lib/HTML/GoogleMaps.pm
Criterion Covered Total %
branch 36 68 52.9


line true false branch
161 0 15 unless $opts{'key'}
164 0 15 if ($opts{'db'})
181 19 2 if ref $point_text eq 'ARRAY'
184 0 2 if ($$this{'db'}) { }
186 0 0 if ($$point{'lat'})
205 5 11 unless @{$$this{'points'};}
224 9 2 if abs $avg_long == $avg_abs_long
227 1 1 if ($avg_abs_long > 90)
228 1 0 if ($avg_long < 0 and abs $avg_long <= 90) { }
0 0 elsif (abs $avg_long <= 90) { }
242 0 1 unless $point
267 0 0 if grep {not $valid_controls{$_};} @controls
292 0 5 unless $valid_types{$type}
305 0 0 if $opts{'icon'} and not $opts{'icon'} =~ /^[A-J]$/ and not $$this{'icon_hash'}{$opts{'icon'}}
309 0 16 unless $point
320 0 0 unless $opts{'image'} and $opts{'shadow'} and $opts{'name'}
330 0 2 if grep {not $_;} @points
345 6 8 unless defined $$this{'dragging'}
346 7 7 unless defined $$this{'info_window'}
351 1 13 if ($$this{'width'} =~ /^\d+$/)
354 1 13 if ($$this{'height'} =~ /^\d+$/)
377 9 5 if $$this{'center'}
379 14 0 if $$this{'zoom'}
384 0 14 if ($$this{'controls'})
391 1 13 unless ($$this{'dragging'})
396 0 9 if defined $$_{'icon'}
412 0 0 if $$icon{'shadow'}
414 0 0 if ref $$icon{'icon_size'} eq 'ARRAY'
416 0 0 if ref $$icon{'shadow_size'} eq 'ARRAY'
418 0 0 if ref $$icon{'icon_anchor'} eq 'ARRAY'
420 0 0 if ref $$icon{'info_window_anchor'} eq 'ARRAY'
430 0 9 if (defined $$point{'icon'})
436 1 8 if ($$point{'format'} and $$point{'html'})
444 1 8 if ($$point{'html'})