Branch Coverage

lib/Rex/Hardware/Memory.pm
Criterion Covered Total %
branch 9 32 28.1


line true false branch
24 0 9 if ($cache->valid($cache_key_name))
32 0 0 if ($_[1] eq 'G') { }
0 0 elsif ($_[1] eq 'M') { }
0 0 elsif ($_[1] eq 'K') { }
46 0 9 if ($os eq 'Windows') { }
0 9 elsif ($os eq 'SunOS') { }
0 9 elsif ($os eq 'OpenBSD') { }
0 9 elsif ($os eq 'NetBSD') { }
0 9 elsif ($os =~ /FreeBSD/u) { }
0 9 elsif ($os eq 'OpenWrt') { }
135 0 0 unless ($active)
147 0 0 if $wired
148 0 0 if $cache
149 0 0 if $buf
180 0 9 unless (can_run("free"))
193 0 9 if (not $free_str) { }