Condition Coverage

blib/lib/Geo/Google/MapObject.pm
Criterion Covered Total %
condition 31 59 52.5


and 3 conditions

line !l l&&!r l&&r condition
176 27 0 0 exists $args{'mobile'} and $args{'mobile'} eq 'true'
177 27 0 0 exists $args{'sensor'} and $args{'sensor'} eq 'true'
182 15 5 7 exists $args{'markers'} and exists $args{'autozoom'}
189 0 0 27 $args{'zoom'} =~ /^\d{1,2}$/ and $args{'zoom'} < 22
215 1 1 19 $width > 0 and $width <= 640
216 1 1 17 $height > 0 and $height <= 640
225 0 0 7 looks_like_number $autozoom and $autozoom >= 0
0 0 7 looks_like_number $autozoom and $autozoom >= 0 and $autozoom <= 21
0 0 0 blessed $autozoom and $autozoom->can('calculate_zoom_and_center')
314 0 0 8 defined $mtheta and defined $mphi
356 24 0 10 exists $$m{'color'} and $$m{'color'} =~ /^0x[A-F0-9]{6}|black|brown|green|purple|yellow|blue|gray|orange|red|white$/
358 30 0 4 exists $$m{'size'} and $$m{'size'} =~ /^tiny|mid|small$/
359 31 0 3 exists $$m{'label'} and $$m{'label'} =~ /^[A-Z0-9]$/

or 2 conditions

line l !l condition
396 5 1 $$self{'markers'} || []

or 3 conditions

line l !l&&r !l&&!r condition
184 0 7 0 $args{'zoom'} ||= $zoom
185 0 7 0 $args{'center'} ||= $center
205 6 1 0 $$size{'width'} || croak('no width')
206 5 1 0 $$size{'height'} || croak('no height')
223 7 0 0 $args{'markers'} || croak('cannot calculate autozoom without markers')
361 34 0 0 $$m{'location'} || croak("no location for $style")