lib/Rex/Interface/Shell/Sh.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 82.7% 24 / 29 CC 2 SCAR 3.0
CC
2
Cov
90%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« lib/Rex/Interface/Executor.pm ↑ Summary lib/Rex/Virtualization/LibVirt.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Interface::Shell::Sh;
6  
7 3 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 our $VERSION = '1.16.1'; # VERSION
11  
12 3 ▶use Rex::Interface::Shell::Bash;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 ▶use base qw(Rex::Interface::Shell::Bash);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
17 2 my $class = shift;
18 2 ▶ my $proto = ref($class) || $class;
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
020
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
19 2 my $self = $proto->SUPER::new(@_);
20  
21 2 bless( $self, $class );
22  
23 2 return $self;
24 }
25  
26 3 1;
« lib/Rex/Interface/Executor.pm ↑ Summary lib/Rex/Virtualization/LibVirt.pm »