Branch Coverage

blib/lib/App/ipinfo.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
177 1 0 ref $args[0] eq ref {} ? :
178 0 1 ref $either ? :
182 0 1 unless eval { do { $info->isa("Geo::Details") } }
199 1 7 if $str eq "0:0:0:0:0:0:0:0"
203 1 41 if ($str =~ /:$zerostr$/u) { }
1 40 elsif ($str =~ /:$zerostr:/u) { }
1 39 elsif ($str =~ /^$zerostr:/u) { }
226 0 0 unless defined $info
228 0 0 if $info->meta->{'from_cache'} == 1
232 0 0 if (ref $i->{$key} eq ref {})
236 0 0 if utf8::is_utf8($i->{$key})
304 4 0 unless defined $asn
342 2 2 defined $V->[0]->latitude ? :
348 2 2 defined $V->[0]->longitude ? :
397 5 3 if ($app->looks_like_ipv4($ip)) { }
0 3 elsif ($app->looks_like_ipv6($ip)) { }
415 0 5 if @values
417 0 5 unless (defined $info and eval { do { $info->isa("Geo::Details") } })
422 5 0 if (exists $info->{'bogon'} and $info->{'bogon'} eq "True")