Condition Coverage

lib/Rex/Hardware/Host.pm
Criterion Covered Total %
condition 7 42 16.6


or 2 conditions

line l !l condition
45 0 0 eval { do { i_run('hostname') } } || 'unknown.nodomain'
49 0 0 eval { do { i_run('hostname') } } || 'unknown'
50 0 0 eval { do { i_run('domainname') } } || 'nodomain'
53 0 0 eval { do { i_run('uname -n') } } || 'unknown'
55 0 0 eval { do { i_run('cat /proc/sys/kernel/domainname') } } || 'unknown'
67 0 0 eval { do { i_run('hostname -s') } } || 'unknown'
68 0 0 eval { do { i_run('hostname -d') } } || 'nodomain'
80 0 51 $bios->get_system_information->get_manufacturer || ''
51 0 $hostname || ''
0 51 $domain || ''
51 0 $os || ''
51 0 $os || ''

or 3 conditions

line l !l&&r !l&&!r condition
38 0 0 51 $os eq "NetBSD" or $os eq "OpenBSD"
0 0 51 $os eq "NetBSD" or $os eq "OpenBSD" or $os eq "FreeBSD"
141 0 0 0 is_file("/etc/SuSE-release") or is_file("/etc/SUSE-brand")
219 0 0 0 lc $op eq "redhat" or lc $op eq "centos"
0 0 0 lc $op eq "redhat" or lc $op eq "centos" or lc $op eq "scientific"
0 0 0 lc $op eq "redhat" or lc $op eq "centos" or lc $op eq "scientific" or lc $op eq "fedora"