Branch Coverage

blib/lib/Geo/Coder/CA.pm
Criterion Covered Total %
branch 10 32 31.2


line true false branch
52 1 2 if (not defined $class) { }
0 2 elsif (ref $class) { }
61 3 0 unless (defined $ua)
84 2 4 if (ref $_[0] eq 'HASH') { }
0 4 elsif (ref $_[0]) { }
3 1 elsif (@_ % 2 == 0) { }
96 6 0 if (not defined $location or length $location == 0)
101 0 0 if (&Encode::is_utf8($location))
113 0 0 if ($res->is_error)
120 0 0 if (my $rc = $json->decode($res->decoded_content))
121 0 0 if ($rc->{'error'})
126 0 0 if (defined $rc->{'latt'} and defined $rc->{'longt'})
167 0 0 if (@_)
185 0 0 if (@_ % 2 == 0) { }
192 0 0 unless my $latlng = $param{'latlng'}
216 0 0 if (scalar @rc) { }