Branch Coverage

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


line true false branch
107 0 0 unless ($type and $type =~ /^4|6$/)
114 0 0 if ($^O =~ /win/i)
128 0 0 if ($args[0] and $type != 0)
130 0 0 if ($flags and not $type =~ /\Q$flags\E/)
139 0 0 if ($cmd eq 'cscript')
153 0 0 if $os eq 'unix' and not -e $fullpath
166 0 0 if (length $dumps < 10)
179 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:]+)$/) { }
184 0 0 if $unique->{$IP}
186 0 0 unless ($self->_checkIP4($IP))
196 0 0 if $unique->{$IP}
198 0 0 unless ($self->_checkIP6($IP))
220 0 0 if ($host =~ /\./) { }
0 0 elsif ($host =~ /:/) { }
235 0 0 unless ($host)
247 0 0 if $ip[0] <= 0 or $ip[0] >= 255
248 0 0 if $ip[1] < 0 or $ip[1] > 255
249 0 0 if $ip[2] < 0 or $ip[2] > 255
250 0 0 if $ip[3] <= 0 or $ip[3] >= 255
261 0 0 if ($sock)
272 0 0 unless ($host)
289 0 0 if ($sock)