Branch Coverage

blib/lib/FusionInventory/Agent/Tools/Win32.pm
Criterion Covered Total %
branch 29 62 46.7


line true false branch
53 0 0 unless ($localCodepage)
68 1 4 unless $string
70 4 0 if &Encode::is_utf8($string)
82 0 0 unless my $WMIService = 'Win32::OLE'->GetObject($params{'moniker'})
90 0 0 if (defined $instance->{$property} and not ref $instance->{$property}) { }
0 0 elsif (defined $instance->{$property}) { }
114 0 0 if ($params{'path'} =~ m[^(HKEY_\S+)/(.+)/([^/]+)]) { }
121 0 0 if $params{'logger'}
131 0 0 if ($valueName eq '*') { }
135 0 0 $params{'withtype'} ? :
139 0 0 $params{'withtype'} ? :
147 0 0 if ($params{'path'} =~ m[^(HKEY_\S+)/(.+)]) { }
153 0 0 if $params{'logger'}
170 0 0 is64bit() ? :
172 0 0 unless ($rootKey)
175 0 0 if $params{'logger'}
246 28 0 $object->{'IPEnabled'} ? :
248 3 25 if ($object->{'DefaultIPGateway'})
252 3 25 if ($object->{'DNSServerSearchOrder'})
256 3 25 if ($object->{'IPAddress'})
274 3 25 unless $object->{'PNPDeviceID'}
277 2 23 if ($object->{'PNPDeviceID'} =~ /PCI\\VEN_(\w{4})&DEV_(\w{4})&SUBSYS_(\w{4})(\w{4})/)
283 2 23 if ($configuration->{'addresses'}) { }
296 2 1 if ($address->[0] =~ /$FusionInventory::Agent::Tools::Win32::ip_address_pattern/) { }
315 2 1 if $object->{'Speed'}
321 16 7 unless $configuration->{'MACADDR'}
334 0 7 if $object->{'Speed'}
351 3 7 if (defined $object->{'PhysicalAdapter'})
352 3 0 $object->{'PhysicalAdapter'} ? :
356 0 7 if ($configuration->{'DESCRIPTION'} and $configuration->{'DESCRIPTION'} =~ /RAS/ and $configuration->{'DESCRIPTION'} =~ /Adapter/i)
363 6 1 $object->{'PNPDeviceID'} =~ /^ROOT/ ? :