Condition Coverage

blib/lib/Geo/IPfree.pm
Criterion Covered Total %
condition 11 19 57.8


and 3 conditions

line !l l&&!r l&&r condition
51 0 0 5 defined $_[0] and $_[0] =~ /^[\w:]+$/
149 0 23 2 $this->{'cache'} and $this->{'CACHE'}{$ip_cache}

or 2 conditions

line l !l condition
165 5 2 $this->{'baseX2dec'} ||= {}
226 0 6 Socket::inet_aton($host) || ''

or 3 conditions

line l !l&&r !l&&!r condition
167 73 1725 0 $$base_cache{$basex2 = substr($this->{'DB'}, $buf_pos + 2, 5)} ||= baseX2dec($basex2)
173 7 0 0 $country ||= substr($this->{'DB'}, $buf_pos - 7, 2)
229 0 3 3 @ip or $last_lookup