Branch Coverage

lib/Rex/Interface/Exec/Base.pm
Criterion Covered Total %
branch 5 20 25.0


line true false branch
31 0 5995 if (defined $cb and ref $cb eq "CODE")
40 0 0 if (defined $regex and ref $regex eq "Regexp" and $line =~ /$regex/u)
64 0 556 if ($cache->valid($cache_key_name))
71 344 212 if $? != 0
73 0 212 unless is_file($output)
95 0 0 if $out
96 0 0 if ($err)
102 0 0 if (wantarray)
119 0 0 if ($cache->valid("shell"))
128 0 0 if ($shells{$shell}->detect($self))