Branch Coverage

File:blib/lib/Database/BI/SafeUA.pm
Coverage:100.0%

line%coveragebranch
61100TFunless substr($packed, 0, $full) eq substr($net, 0, $full)
62100TFunless my $rest = $bits % 8
64100TF(ord substr($packed, $full, 1) & $mask) == (ord substr($net, $full, 1) & $mask) ? :
69100TFunless defined $ip and length $ip
73100TFif ($bare =~ /:/)
79100TFif substr($packed, 0, 12) eq $prefix and $packed ne "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1" and $packed ne "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
82100TFif substr($packed, 0, 2) eq " \2"
84100TFif _in_net($packed, inet_pton(10, $$net[0]), $$net[1])
94100TFunless $bare =~ /\A(?:0|[1-9][0-9]{0,2})(?:\.(?:0|[1-9][0-9]{0,2})){3}\z/
97100TFif _in_net($packed, inet_pton(2, $$net[0]), $$net[1])
104100TFunless defined $host
106100TFif ($h =~ /\A\[([0-9a-f:.%a-z]+)\]\z/)
108100TF$inner =~ /:/ ? :
110100TFif $h =~ /:/ and defined inet_pton(10, $h)
123100TFunless $h =~ /\A(?:0x[0-9a-f]+|[0-9]+)(?:\.(?:0x[0-9a-f]+|[0-9]+)){0,3}\z/
127100TFif ($part =~ /\A0x([0-9a-f]*)\z/) { }
100TFelsif ($part =~ /\A0([0-7]*)\z/) { }
100TFelsif ($part =~ /\A[1-9][0-9]{0,9}\z/) { }
129100TFif length $hex > 8
130100TFlength $hex ? :
133100TFif length $oct > 11
135100TFlength $oct ? :
145100TFif $n > 255
147100TFif $last >= 2 ** (8 * (4 - @parts))
159100TFif $@ or not defined $err or $err
163100TFif not $e and defined $ip and not $seen{$ip}++
179100TFref $resolve eq 'CODE' ? :
180100TFif defined $_
100TFref $private eq 'ARRAY' ? :
188100TFif $name eq $host
189100TFif $name =~ /\A\*(\..+)\z/ and length $host > length $1 and substr($host, -length($1)) eq $1
206100TFunless $scheme eq "http" or $scheme eq "https"
209100TFunless length $name
212100TFdefined $literal ? :
213100TFunless @addrs
214100TFunless (not defined $literal and $self->private_host_allowed($name))
218100TF$shown eq $name ? :
225100TF$addrs[0] =~ /:/ ? :
232100TF$scheme eq 'https' ? :