Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Generic/USB.pm
Criterion Covered Total %
branch 23 32 71.8


line true false branch
11 0 0 if $params{'no_category'}{'usb'}
35 0 15 unless $device->{'PRODUCTID'}
36 0 15 unless $device->{'VENDORID'}
41 9 6 if $device->{'PRODUCTID'} eq '0001' or $device->{'PRODUCTID'} eq '0002'
43 0 6 if (defined $device->{'SERIAL'} and length $device->{'SERIAL'} < 5)
48 6 0 if ($vendor)
52 6 0 if ($entry)
69 0 2 unless $handle
75 30 2668 if ($line =~ /^$/) { }
30 2638 elsif ($line =~ /^\s*idVendor\s*0x(\w+)/i) { }
30 2608 elsif ($line =~ /^\s*idProduct\s*0x(\w+)/i) { }
18 2590 elsif ($line =~ /^\s*iSerial\s*\d+\s(\w+)/i) { }
50 2540 elsif ($line =~ /^\s*bInterfaceClass\s*(\d+)/i) { }
50 2490 elsif ($line =~ /^\s*bInterfaceSubClass\s*(\d+)/i) { }
76 28 2 if $device
91 2 0 if $device