Branch Coverage

blib/lib/Geo/Coder/US/Census.pm
Criterion Covered Total %
branch 5 30 16.6


line true false branch
55 2 0 unless (defined $ua)
78 0 1 if (ref $_[0] eq 'HASH') { }
0 1 elsif (ref $_[0]) { }
1 0 elsif (@_ % 2 == 0) { }
89 1 0 unless my $location = $param{'location'}
91 0 0 if (&Encode::is_utf8($location))
95 0 0 if ($location =~ /,?(.+),\s*(United States|US|USA)$/i)
105 0 0 if ($location =~ /^(\d+\s+[\w\s\.]+),\s*([\w\s]+),\s*[\w\s]+,\s*([A-Za-z\s]+)$/)
112 0 0 unless (defined $hr->{'city'} and defined $hr->{'state'})
123 0 0 if ($hr->{'street'})
124 0 0 if ($hr->{'number'}) { }
129 0 0 if ($hr->{'suffix'})
139 0 0 if ($res->is_error)
167 0 0 if (@_)
219 0 0 unless scalar @rc