lib/Rex/Interface/Executor/Base.pm

filter: Statementstmt 60.0% 9 / 15 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 3 totaltotal 42.8% 12 / 28 CC 2 SCAR 10.4
CC
2
Cov
50%
new
6.0
exec
2.0
BEGIN
1.0
CRAP 2.8
« lib/Rex/Inventory/Proc/Cpuinfo.pm ↑ Summary lib/Rex/Inventory/DMIDecode/Section.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Interface::Executor::Base;
6  
7 55 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 55 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 55 our $VERSION = '1.16.1'; # VERSION
11  
12 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my $that = shift;
14 0 ▶ my $proto = ref($that) || $that;
Condition0%0/3
ref $that || $that
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table0%0/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
15 0 my $self = $proto->SUPER::new(@_);
16  
17 0 bless( $self, $proto );
18  
19 0 return $self;
20 }
21  
22 0 ▶sub exec { die("Should be implemented by interface class."); }
Subroutine exec: not called CC=1 SCAR=6.9
Pod undocumented
23  
24 54 ▶sub set_task {
Subroutine set_task: called CC=1 SCAR=0.0
Pod undocumented
25 54 my ( $self, $task ) = @_;
26 54 $self->{task} = $task;
27 }
28  
29 55 1;
« lib/Rex/Inventory/Proc/Cpuinfo.pm ↑ Summary lib/Rex/Inventory/DMIDecode/Section.pm »