Branch Coverage

blib/lib/FusionInventory/Agent/Tools/BSD.pm
Criterion Covered Total %
branch 0 24 0.0


line true false branch
22 0 0 unless $handle
34 0 0 if ($line =~ /^(\S+): flags=\d+<([^>]+)> metric \d+ mtu (\d+)/) { }
0 0 elsif ($line =~ /(?:address:|ether|lladdr) ($FusionInventory::Agent::Tools::BSD::mac_address_pattern)/) { }
0 0 elsif ($line =~ / ssid \s (\S+) \s channel \s \d+ \s \(\d+ \s MHz \s (\S+)[^)]*\) \s bssid \s ($FusionInventory::Agent::Tools::BSD::mac_address_pattern) /x) { }
0 0 elsif ($line =~ /inet ($FusionInventory::Agent::Tools::BSD::ip_address_pattern) (?:--> $FusionInventory::Agent::Tools::BSD::ip_address_pattern )?netmask 0x($FusionInventory::Agent::Tools::BSD::hex_ip_address_pattern)/) { }
0 0 elsif ($line =~ /inet6 ([\w:]+)\S* prefixlen (\d+)/) { }
36 0 0 if (@addresses) { }
40 0 0 if $interface
44 0 0 any(sub { $_ eq 'UP'; } , split(/,/, $flags, 0)) ? :
95 0 0 if ($line =~ /media: (\S+)/)
103 0 0 if (@addresses) { }
106 0 0 if $interface