Branch Coverage

blib/lib/Net/Address/Ethernet.pm
Criterion Covered Total %
branch 30 48 62.5


line true false branch
103 0 7 unless ($rh->{'iActive'})
109 0 7 unless (exists $rh->{'sIP'})
114 0 7 unless (defined $rh->{'sIP'})
119 0 7 if ($rh->{'sIP'} eq '')
124 3 4 if ($rh->{'sIP'} eq '127.0.0.1')
129 0 4 unless (exists $rh->{'sEthernet'})
134 0 4 unless (defined $rh->{'sEthernet'})
139 0 4 if ($rh->{'sEthernet'} eq '')
148 1 3 wantarray ? :
191 3 3 if (not $Net::Address::Ethernet::DEBUG and @ahInfo)
197 0 3 unless (defined $rh and scalar keys %$rh)
208 0 6 if ($key =~ /\A\{.+}\z/)
218 3 3 if ($sEther eq '')
224 6 0 if (defined $rh->{$key}{'status'} and $rh->{$key}{'status'} =~ /\A(1|UP)\z/i)
241 0 3 if $^O eq 'MSWIn32'
249 9 3 unless -x $sARP
254 3 6 if $sHost eq ''
263 0 3 if ($sLine =~ /\(($Net::Address::Ethernet::RE{'net'}{'IPv4'})\)\s+AT\s+($Net::Address::Ethernet::RE{'net'}{'MAC'})\b/i)
268 0 0 if $sIPFound eq $sIP
271 0 3 if ($sLine =~ /($Net::Address::Ethernet::RE{'net'}{'IPv4'})\s+ETHER\s+($Net::Address::Ethernet::RE{'net'}{'MAC'})\b/i)
274 0 0 if $1 eq $sIP
309 6 10 unless is_address($s)
315 21 39 length $_ < 2 ? :
322 34 0 unless $Net::Address::Ethernet::DEBUG