Branch Coverage

blib/lib/Net/Hacky/Detect/IP.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
107 0 0 unless ($type and $type =~ /^4|6$/)
114 0 0 if ($^O =~ /win/i)
131 0 0 if ($cmd eq 'cscript')
145 0 0 if $os eq 'unix' and not -e $fullpath
158 0 0 if (length $dumps < 10)
171 0 0 if ($type == 4 || $type == 0 and $testIP =~ /(\d+\.\d+\.\d+\.\d+)/) { }
0 0 elsif ($type == 6 || $type == 0 and $testIP =~ /:/ and $testIP =~ /[0-9]/ and $testIP =~ /^([a-f0-9:]+)$/) { }
176 0 0 if $unique->{$IP}
178 0 0 unless ($self->_checkIP4($IP))
188 0 0 if $unique->{$IP}
190 0 0 unless ($self->_checkIP6($IP))
212 0 0 if ($host =~ /\./) { }
0 0 elsif ($host =~ /:/) { }
277 0 0 unless ($host)
289 0 0 if $ip[0] <= 0 or $ip[0] >= 255
290 0 0 if $ip[1] < 0 or $ip[1] > 255
291 0 0 if $ip[2] < 0 or $ip[2] > 255
292 0 0 if $ip[3] <= 0 or $ip[3] >= 255
303 0 0 if ($sock)
314 0 0 unless ($host)
331 0 0 if ($sock)