Condition Coverage

File:blib/lib/Geo/Coder/Free.pm
Coverage:68.8%

line%coveragecondition
296100
Adec
00
11
Params::Get::get_params(undef, @_) // {}
32033
ABdec
0X0
100
111
length $from and length $to
325100
ABdec
0X0
100
111
not defined $$params{"openaddr"} and $ENV{"OPENADDR_HOME"}
40733
ABdec
0X0
100
111
defined $self and $self ne __PACKAGE__
553100
Adec
00
11
$params{"on_error"} // "croak"
554100
ABdec
000
011
1X1
$on_error eq "croak" or $on_error eq "undef"
561100
ABdec
0X0
100
111
defined $params{"location"} and not _valid_location($params{"location"})
562100
ABdec
000
011
1X1
not length $params{"location"} or $on_error eq "undef"
565100
ABdec
0X0
100
111
defined $params{"scantext"} and not _valid_location($params{"scantext"})
566100
ABdec
000
011
1X1
not length $params{"scantext"} or $on_error eq "undef"
57667
ABdec
000
011
1X1
$$self{"local"} ||= "Geo::Coder::Free::Local"->new
65033
ABdec
0X0
100
111
@rc and $rc[0]
6510
ABdec
000
011
1X1
$$self{"local"} ||= "Geo::Coder::Free::Local"->new
6530
ABdec
0X0
100
111
@rc and $rc[0]
65867
ABdec
000
011
1X1
$$self{"local"} ||= "Geo::Coder::Free::Local"->new
87967
ABdec
0X0
100
111
scalar(@_) % 2 == 0 and not grep({ref $_;} @_)
33
ABdec
0X0
100
111
@_ == 1 and ref $_[0] eq "HASH"
887100
Adec
00
11
$$opts{"on_error"} // "croak"
888100
ABdec
000
011
1X1
$on_error eq "croak" or $on_error eq "undef"
93450
Adec
00
11
$$reads_before{$backend} // 0
942100
ABdec
0X0
100
111
_valid_location($key) and $read
959100
Adec
00
11
$results{"reads"}{$backend} //= 0
97733
ABdec
0X0
100
111
&Scalar::Util::blessed($backend) and $backend->can("reads")
97850
Adec
00
11
$backend->reads // 0
108650
Adec
00
11
&Scalar::Util::reftype($point) || ''
50
ABCdec
0XX0
10X0
1100
1111
defined $point and ref $point and (&Scalar::Util::reftype($point) || '') eq "HASH"
124267
ABdec
000
011
1X1
$_MESSAGES{$key} // $key
1258100
ABdec
0X0
100
111
@args and @args % 2 == 0