Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Win32/Softwares.pm
Criterion Covered Total %
branch 17 60 28.3


line true false branch
34 0 0 if ($is64bit) { }
40 0 0 unless my $machKey64 = $FusionInventory::Agent::Task::Inventory::Win32::Softwares::Registry->Open('LMachine', {'Access', KEY_READ() | 256})
58 0 0 if ($params{'scan_profiles'}) { }
71 0 0 unless my $machKey32 = $FusionInventory::Agent::Task::Inventory::Win32::Softwares::Registry->Open('LMachine', {'Access', KEY_READ() | 512})
93 0 0 if $params{'scan_profiles'}
95 0 0 unless my $machKey = $FusionInventory::Agent::Task::Inventory::Win32::Softwares::Registry->Open('LMachine', {'Access', KEY_READ()})
116 0 0 if $params{'scan_profiles'}
124 0 0 if $$seen{$hotfix->{'NAME'}}
137 0 0 unless my $machKey = $FusionInventory::Agent::Task::Inventory::Win32::Softwares::Registry->Open('LMachine', {'Access', KEY_READ()})
144 0 0 unless $profileList
150 0 0 unless $profileName =~ m[/$]
151 0 0 unless length $profileName > 10
156 0 0 unless $sid
157 0 0 unless $profilePath
163 0 0 $is64bit ? :
191 101 324 unless $date
193 0 324 if ($date =~ /^(\d{4})(\d{1})(\d{2})$/)
197 324 0 if ($date =~ /^(\d{4})(\d{2})(\d{2})$/)
211 0 1 unless $softwares
215 1 534 if $rawGuid =~ m[^/]
219 109 425 unless keys %$data > 1
243 0 425 $params{'is64bit'} ? :
246 334 91 if $software->{'VERSION'}
265 10 6 if ($object->{'Description'} and $object->{'Description'} =~ /^(Security Update|Hotfix|Update)/)
269 6 10 unless $object->{'HotFixID'} =~ /KB(\d{4,10})/i
275 0 10 $params{'is64bit'} ? :
289 0 0 if $$seen{$entry->{'NAME'}}{$entry->{'ARCH'}}{$entry->{'VERSION'} or '_undef_'}++
298 0 0 $params{'is64bit'} ? :
303 0 0 unless $version
309 0 0 $params{'is64bit'} ? :