Branch Coverage

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


line true false branch
11 0 0 if $params{'no_category'}{'usb'}
35 0 0 unless $$device{'PRODUCTID'}
36 0 0 unless $$device{'VENDORID'}
40 0 0 if $$device{'PRODUCTID'} eq '0001' or $$device{'PRODUCTID'} eq '0002'
43 0 0 if (defined $$device{'SERIAL'} and length $$device{'SERIAL'} < 5)
48 0 0 if ($vendor)
52 0 0 if ($entry)
69 0 0 unless $handle
75 0 0 if ($line =~ /^$/) { }
0 0 elsif ($line =~ /^\s*idVendor\s*0x(\w+)/i) { }
0 0 elsif ($line =~ /^\s*idProduct\s*0x(\w+)/i) { }
0 0 elsif ($line =~ /^\s*iSerial\s*\d+\s(\w+)/i) { }
0 0 elsif ($line =~ /^\s*bInterfaceClass\s*(\d+)/i) { }
0 0 elsif ($line =~ /^\s*bInterfaceSubClass\s*(\d+)/i) { }
76 0 0 if $device
91 0 0 if $device