Condition Coverage

blib/lib/Geo/IPfree.pm
Criterion Covered Total %
condition 9 19 47.3


and 3 conditions

line !l l&&!r l&&r condition
51 0 0 3 defined $_[0] and $_[0] =~ /^[\w:]+$/
148 0 15 0 $this->{'cache'} and $this->{'CACHE'}{$ip_class}

or 2 conditions

line l !l condition
164 4 1 $this->{'baseX2dec'} ||= {}
225 0 6 Socket::inet_aton($host) || ''

or 3 conditions

line l !l&&r !l&&!r condition
166 0 1651 0 $$base_cache{$basex2 = substr($this->{'DB'}, $buf_pos + 2, 5)} ||= baseX2dec($basex2)
172 5 0 0 $country ||= substr($this->{'DB'}, $buf_pos - 7, 2)
228 0 3 3 @ip or $last_lookup