Branch Coverage

blib/lib/Sys/HostIP.pm
Criterion Covered Total %
branch 22 46 47.8


line true false branch
22 0 3 $is_win ? :
32 2 4 unless (ref $self)
37 1 3 if $path
46 1 1 if (not ref $self) { }
52 0 2 if ($is_win) { }
55 0 0 if ($key =~ /Local Area Connection/)
64 0 0 if ($if_info->{$key} eq '127.0.0.1')
74 0 2 if $lo_found
83 0 1 unless (ref $self)
93 0 1 unless (ref $self)
103 0 3 unless (ref $self)
114 3 0 if ($^O =~ /(?: linux|openbsd|freebsd|netbsd|solaris|darwin )/xi) { }
0 0 elsif ($^O eq 'aix') { }
0 0 elsif ($^O eq 'irix') { }
0 0 elsif ($^O eq 'dec_osf') { }
132 0 3 $is_win ? :
203 0 0 if ($line =~ /^\s+/ and $interface) { }
0 0 elsif (($interface) = $line =~ /(^\w+(?:\d)?(?:\.\d+)?(?:\:\d+)?)/) { }
217 0 0 if (my($ip) = $if_info{$key} =~ /inet (?:addr\:)?(\d+(?:\.\d+){3})/) { }
263 10 246 if ($line =~ /Windows/) { }
79 167 elsif ($line =~ /^\s$/) { }
14 153 elsif ($line =~ /$regexes{'address'}/ and defined $interface) { }
16 137 elsif ($line =~ /$regexes{'adapter'}/) { }