Branch Coverage

lib/Rex/Hardware/Swap.pm
Criterion Covered Total %
branch 8 34 23.5


line true false branch
23 0 9 if ($cache->valid($cache_key_name))
31 0 0 unless (defined $_[0])
35 0 0 if ($_[1] eq 'G') { }
0 0 elsif ($_[1] eq 'M') { }
0 0 elsif ($_[1] eq 'K') { }
49 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) { }
109 0 0 unless ($total)
114 0 0 if $total
115 0 0 if $used
116 0 0 if $free
118 0 0 if (not $used and $total and $free)
130 0 9 unless (can_run("free"))
142 0 9 if (not $free_str) { }