Branch Coverage

blib/lib/FusionInventory/Agent/Inventory.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
132 0 0 if $params{'statedir'}
147 0 0 unless $content
150 0 0 if (ref $$content{$section} eq 'ARRAY') { }
158 0 0 if ($section eq 'HARDWARE')
162 0 0 if ($section eq 'BIOS')
166 0 0 if ($section eq 'ACCESSLOG')
182 0 0 unless $entry
187 0 0 unless $fields
190 0 0 unless ($$fields{$field})
196 0 0 unless (defined $$entry{$field})
204 0 0 if ($$checks{$field})
205 0 0 unless $value =~ /$$checks{$field}/
213 0 0 if ($params{'noDuplicated'})
215 0 0 if $$self{'seen'}{$section}{$md5}
219 0 0 if ($section eq 'STORAGES')
220 0 0 unless $$entry{'SERIALNUMBER'}
231 0 0 if ($cpus)
243 0 0 if ($interfaces)
257 0 0 if ($users)
261 0 0 if ($$user{'LOGIN'} =~ /(\S+)\\(\S+)/) { }
281 0 0 unless ($fields{'HARDWARE'}{$field})
287 0 0 unless $$args{$field}
298 0 0 unless ($fields{'OPERATINGSYSTEM'}{$field})
313 0 0 unless ($fields{'BIOS'}{$field})
327 0 0 unless ($fields{'ACCESSLOG'}{$field})
342 0 0 unless $tag
378 0 0 if ($$self{'last_state_file'})
379 0 0 if (-f $$self{'last_state_file'}) { }
385 0 0 if (ref $$self{'last_state_content'} ne 'HASH')
402 0 0 if $$self{'last_state_content'}{$section} and $$self{'last_state_content'}{$section} eq $hash
423 0 0 unless (defined $$self{'last_state_content'})
426 0 0 if ($$self{'last_state_file'}) { }