Branch Coverage

blib/lib/Geo/Coder/OSM.pm
Criterion Covered Total %
branch 9 42 21.4


line true false branch
22 0 2 @params % 2 ? :
30 0 2 if (exists $$self{'sources'}) { }
32 0 0 unless ref $sources
34 0 0 unless exists $SOURCES{$source}
44 0 1 exists $$self{'compress'} ? :
1 1 if ($$self{'debug'}) { }
1 0 elsif (exists $$self{'compress'} ? $$self{'compress'} : 1) { }
60 2 3 if ($ua)
61 0 2 unless ref $ua and $ua->isa('LWP::UserAgent')
70 0 0 @params % 2 ? :
72 0 0 unless my $location = delete $params{'location'}
92 0 0 @params % 2 ? :
96 0 0 if (my $latlon = delete $params{'latlng'}) { }
103 0 0 unless 2 == grep(defined($_), $lat, $lon)
124 0 0 unless $uri
127 0 0 unless $res->is_success
131 0 0 unless $res->content_type =~ /^text/
135 0 0 unless $content
138 0 0 unless $data
140 0 0 'ARRAY' eq ref $data ? :
141 0 0 wantarray ? :