Branch Coverage

blib/lib/Geo/Coder/Bing.pm
Criterion Covered Total %
branch 13 50 26.0


line true false branch
17 2 2 @params % 2 ? :
19 0 4 unless $params{'key'}
28 2 2 if ($$self{'debug'})
34 2 2 exists $$self{'compress'} ? :
2 2 if (exists $$self{'compress'} ? $$self{'compress'} : 1)
38 0 4 if $$self{'https'} and not $self->ua->is_protocol_supported('https')
48 4 6 if ($ua)
49 0 4 unless ref $ua and $ua->isa('LWP::UserAgent')
57 0 0 $_[0]{'key'} ? :
62 0 0 @params % 2 ? :
64 0 0 unless $params{'query'} = delete $params{'location'}
68 0 0 if $$self{'https'}
75 0 0 unless $res->is_success
82 0 0 unless $content
85 0 0 unless $data
87 0 0 unless $$data{'resourceSets'}[0]{'resources'}
88 0 0 wantarray ? :
96 0 0 @params % 2 ? :
98 0 0 unless my $location = $params{'location'}
102 0 0 if $$self{'https'}
121 0 0 unless $res->is_success
128 0 0 unless $content
134 0 0 unless $data
136 0 0 unless $$data{'d'}{'Results'}
137 0 0 wantarray ? :