Branch Coverage

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


line true false branch
120 0 0 unless ($type and $type =~ /^4|6$/)
127 0 0 if ($^O =~ /win/i)
141 0 0 if ($args[0] and $type != 0)
143 0 0 if ($flags and not $type =~ /\Q$flags\E/)
152 0 0 if ($cmd eq 'cscript')
166 0 0 if $os eq 'unix' and not -e $fullpath
179 0 0 if (length $dumps < 10)
192 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:]+)$/) { }
197 0 0 if $unique->{$IP}
199 0 0 unless ($self->_checkIP4($IP))
209 0 0 if $unique->{$IP}
211 0 0 unless ($self->_checkIP6($IP))
233 0 0 if ($host =~ /\./) { }
0 0 elsif ($host =~ /:/) { }
248 0 0 unless ($host)
260 0 0 if $ip[0] <= 0 or $ip[0] >= 255
261 0 0 if $ip[1] < 0 or $ip[1] > 255
262 0 0 if $ip[2] < 0 or $ip[2] > 255
263 0 0 if $ip[3] <= 0 or $ip[3] >= 255
274 0 0 if ($sock)
285 0 0 unless ($host)
302 0 0 if ($sock)