Condition Coverage

blib/lib/FusionInventory/Agent/Tools/Hardware.pm
Criterion Covered Total %
condition 0 81 0.0


and 3 conditions

line !l l&&!r l&&r condition
297 0 0 0 exists $$device{'TYPE'} && $$device{'TYPE'} eq 'PRINTER'
310 0 0 0 not exists $$device{'VENDOR'} and exists $$device{'MANUFACTURER'}
456 0 0 0 $type && $type eq 'NETWORKING'
0 0 0 $type && $type eq 'PRINTER'
509 0 0 0 $address and $address =~ /^$FusionInventory::Agent::Tools::Hardware::mac_address_pattern$/
521 0 0 0 @addresses and @addresses == 1
567 0 0 0 $$info{'TYPE'} and $$info{'TYPE'} eq 'PRINTER'
574 0 0 0 $$info{'TYPE'} and $$info{'TYPE'} eq 'NETWORKING'
583 0 0 0 $ports and %$ports
692 0 0 0 defined $max and defined $current
827 0 0 0 defined $value1 and _isInteger($value1)
828 0 0 0 defined $value2 and _isInteger($value2)
982 0 0 0 exists $$port{'CONNECTIONS'} and exists $$port{'CONNECTIONS'}{'CDP'}
0 0 0 exists $$port{'CONNECTIONS'} and exists $$port{'CONNECTIONS'}{'CDP'} and $$port{'CONNECTIONS'}{'CDP'}
1035 0 0 0 exists $$port{'CONNECTIONS'} and exists $$port{'CONNECTIONS'}{'CDP'}
0 0 0 exists $$port{'CONNECTIONS'} and exists $$port{'CONNECTIONS'}{'CDP'} and $$port{'CONNECTIONS'}{'CDP'}
1043 0 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'}
1273 0 0 0 $sysdescr and $model
1303 0 0 0 $$connection{'SYSNAME'} and $$connection{'SYSNAME'} =~ /^SIP([A-F0-9a-f]*)$/

or 3 conditions

line l !l&&r !l&&!r condition
287 0 0 0 $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')
556 0 0 0 $params{'type'} || $$info{'TYPE'}
716 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'
1207 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')
1227 0 0 0 not $portId =~ /^0x/ or length $portId != 14