Branch Coverage

blib/lib/FusionInventory/Agent/Tools/Win32.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
53 0 0 unless ($localCodepage)
68 0 0 unless $string
70 0 0 if &Encode::is_utf8($string)
81 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+)/(.+)/([^/]+)]) { }
119 0 0 if $params{'logger'}
131 0 0 if ($valueName eq '*') { }
147 0 0 if ($params{'path'} =~ m[^(HKEY_\S+)/(.+)]) { }
151 0 0 if $params{'logger'}
168 0 0 is64bit() ? :
172 0 0 unless ($rootKey)
173 0 0 if $params{'logger'}
240 0 0 $$object{'IPEnabled'} ? :
248 0 0 if ($$object{'DefaultIPGateway'})
252 0 0 if ($$object{'DNSServerSearchOrder'})
256 0 0 if ($$object{'IPAddress'})
274 0 0 unless $$object{'PNPDeviceID'}
277 0 0 if ($$object{'PNPDeviceID'} =~ /PCI\\VEN_(\w{4})&DEV_(\w{4})&SUBSYS_(\w{4})(\w{4})/)
283 0 0 if ($$configuration{'addresses'}) { }
296 0 0 if ($$address[0] =~ /$FusionInventory::Agent::Tools::Win32::ip_address_pattern/) { }
314 0 0 if $$object{'Speed'}
321 0 0 unless $$configuration{'MACADDR'}
333 0 0 if $$object{'Speed'}
351 0 0 if (defined $$object{'PhysicalAdapter'})
352 0 0 $$object{'PhysicalAdapter'} ? :
356 0 0 if ($$configuration{'DESCRIPTION'} and $$configuration{'DESCRIPTION'} =~ /RAS/ and $$configuration{'DESCRIPTION'} =~ /Adapter/i)
363 0 0 $$object{'PNPDeviceID'} =~ /^ROOT/ ? :