Condition Coverage

blib/lib/FusionInventory/Agent/Tools/Hardware.pm
Criterion Covered Total %
condition 22 84 26.1


and 3 conditions

line !l l&&!r l&&r condition
320 2 1 0 exists $device->{'TYPE'} && $device->{'TYPE'} eq 'PRINTER'
333 0 4 0 not exists $device->{'VENDOR'} and exists $device->{'MANUFACTURER'}
521 4 0 0 $address and $address =~ /^$FusionInventory::Agent::Tools::Hardware::mac_address_pattern$/
533 4 0 0 @addresses and @addresses == 1
584 0 0 0 $info->{'TYPE'} and $info->{'TYPE'} eq 'PRINTER'
591 0 0 0 $info->{'TYPE'} and $info->{'TYPE'} eq 'NETWORKING'
613 0 0 0 $ports and %$ports
722 0 0 0 defined $max and defined $current
865 0 0 0 defined $value1 and _isInteger($value1)
866 0 0 0 defined $value2 and _isInteger($value2)
900 1 3 0 scalar @bytes == 8 and $bytes[0] eq '10' && $bytes[1] =~ /^0+/ || $bytes[0] =~ /^2/
1034 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'}
1103 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'}
1112 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'}
1359 1 1 1 $sysdescr and $model
1389 0 0 1 $connection->{'SYSNAME'} and $connection->{'SYSNAME'} =~ /^SIP([A-F0-9a-f]*)$/
1505 0 0 0 $vtpVlanName and $vmPortStatus

or 3 conditions

line l !l&&r !l&&!r condition
310 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')
568 0 0 0 $params{'type'} || $info->{'TYPE'}
746 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'
900 1 1 1 $bytes[0] eq '10' && $bytes[1] =~ /^0+/ || $bytes[0] =~ /^2/
1293 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')
1313 0 0 0 not $portId =~ /^0x/ or length $portId != 14