Branch Coverage

blib/lib/WebService/Geocodio/Location.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
24 2 5 if (ref $args[0] eq 'HASH') { }
1 4 elsif (@args % 2 == 1) { }
26 2 0 if exists $hr->{'accuracy'}
27 2 0 if exists $hr->{'formatted_address'}
28 0 2 if exists $hr->{'fields'}
29 12 2 if exists $hr->{'address_components'}{$_}
30 4 0 if exists $hr->{'location'}{$_}
45 3 4 if $self->has_formatted
47 0 2 unless ($self->has_zip or $self->has_city and $self->has_state)
52 1 0 if ($self->has_number and $self->has_street and $self->suffix)
54 1 0 if ($self->has_postdirection) { }
65 3 1 if ($self->has_city and $self->has_state)
67 1 2 if $self->has_zip
70 2 2 if ($self->has_zip)
80 0 0 unless ($self->has_lat and $self->has_lng)