Branch Coverage

blib/lib/FusionInventory/Agent/Task/Inventory/Win32/Printers.pm
Criterion Covered Total %
branch 18 26 69.2


line true false branch
62 0 0 if ($object->{'ExtendedDetectedErrorState'})
68 0 0 if ($object->{'HorizontalResolution'})
76 0 0 if $object->{'PortName'} and $object->{'PortName'} =~ /USB/
120 2 7 if ($containerId)
122 2 0 if $serial
127 7 0 if ($prefix)
129 4 3 if $serial
153 5 9 unless $subdevice->{'Device Parameters/'} and $subdevice->{'Device Parameters/'}{'/PortName'} and $subdevice->{'Device Parameters/'}{'/PortName'} eq $portName
178 5 7 unless $subdevice->{'Device Parameters/'} and $subdevice->{'Device Parameters/'}{'/PortName'} and $subdevice->{'Device Parameters/'}{'/PortName'} eq $portName
203 108 7 unless $subdevice->{'/ParentIdPrefix'} and $subdevice->{'/ParentIdPrefix'} eq $prefix
207 3 4 if $serial =~ /&/
230 34 4 unless $subdevice->{'/ContainerID'} and $subdevice->{'/ContainerID'} eq $containerId
232 2 2 if $subdeviceName =~ /&/