line |
true |
false |
branch |
55
|
1 |
0 |
unless defined $str and $str =~ /\,/ and (($lat, $lng) = split(/\,/, $str, 2) and ($lat =~ /^\-?\d+\.?\d+$/ and $lng =~ /^\-?\d+\.?\d+$/)) |
68
|
0 |
1 |
if defined $str and $str =~ /^\d+$/ |
89
|
0 |
0 |
unless defined $values |
91
|
0 |
0 |
unless ref $values eq 'HASH' |
95
|
0 |
0 |
unless exists $WWW::Google::DistanceMatrix::Params::FIELDS->{$field} |
98
|
0 |
0 |
if $fields->{$field} and not defined $values->{$field} |
101
|
0 |
0 |
if $fields->{$field} and not scalar @{$values->{$field};} |
104
|
0 |
0 |
if defined $values->{$field} |