Condition Coverage

blib/lib/FusionInventory/Agent/Tools/Hardware.pm
Criterion Covered Total %
condition 17 78 21.7


and 3 conditions

line !l l&&!r l&&r condition
319 2 1 0 exists $device->{'TYPE'} && $device->{'TYPE'} eq 'PRINTER'
332 0 3 0 not exists $device->{'VENDOR'} and exists $device->{'MANUFACTURER'}
519 3 0 0 $address and $address =~ /^$FusionInventory::Agent::Tools::Hardware::mac_address_pattern$/
531 3 0 0 @addresses and @addresses == 1
582 0 0 0 $info->{'TYPE'} and $info->{'TYPE'} eq 'PRINTER'
589 0 0 0 $info->{'TYPE'} and $info->{'TYPE'} eq 'NETWORKING'
593 0 0 0 $ports and %$ports
702 0 0 0 defined $max and defined $current
845 0 0 0 defined $value1 and _isInteger($value1)
846 0 0 0 defined $value2 and _isInteger($value2)
1002 0 4 0 exists $port->{'CONNECTIONS'} and exists $port->{'CONNECTIONS'}{'CDP'}
3 1 0 exists $port->{'CONNECTIONS'} and exists $port->{'CONNECTIONS'}{'CDP'} and $port->{'CONNECTIONS'}{'CDP'}
1055 3 1 0 exists $port->{'CONNECTIONS'} and exists $port->{'CONNECTIONS'}{'CDP'}
0 1 0 exists $port->{'CONNECTIONS'} and exists $port->{'CONNECTIONS'}{'CDP'} and $port->{'CONNECTIONS'}{'CDP'}
1064 3 0 0 exists $port->{'CONNECTIONS'} and exists $port->{'CONNECTIONS'}{'CONNECTION'}
0 0 0 exists $port->{'CONNECTIONS'} and exists $port->{'CONNECTIONS'}{'CONNECTION'} and exists $port->{'CONNECTIONS'}{'CONNECTION'}{'MAC'}
1291 1 1 1 $sysdescr and $model
1321 0 0 1 $connection->{'SYSNAME'} and $connection->{'SYSNAME'} =~ /^SIP([A-F0-9a-f]*)$/
1437 0 0 0 $vtpVlanName and $vmPortStatus

or 3 conditions

line l !l&&r !l&&!r condition
309 0 0 2 $snmp->get('.1.3.6.1.2.1.43.11.1.1.6.1.1') or $snmp->get('.1.3.6.1.2.1.25.3.2.1.3.1')
566 0 0 0 $params{'type'} || $info->{'TYPE'}
726 0 0 0 $type eq 'TONER' or $type eq 'DRUM'
0 0 0 $type eq 'TONER' or $type eq 'DRUM' or $type eq 'CARTRIDGE'
0 0 0 $type eq 'TONER' or $type eq 'DRUM' or $type eq 'CARTRIDGE' or $type eq 'DEVELOPER'
1225 0 0 0 $snmp->walk('.1.3.6.1.4.1.9.5.1.4.1.1.11.1') || $snmp->walk('.1.3.6.1.2.1.17.1.4.1.2')
1245 0 0 0 not $portId =~ /^0x/ or length $portId != 14