lib/Rex/Pkg/Test.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 83.3% 25 / 30 CC 2 SCAR 3.0
CC
2
Cov
91%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/Rex/Virtualization/VBox.pm ↑ Summary lib/Rex/Inventory/DMIDecode/BaseBoard.pm »
1 #
2 # (c) Ferenc Erki <erkiferenc@gmail.com>
3 #
4  
5 package Rex::Pkg::Test;
6  
7 2 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 our $VERSION = '1.16.1'; # VERSION
11  
12 2 ▶use Rex::Pkg::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 ▶use base qw(Rex::Pkg::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod undocumented
16 1 my $that = shift;
17 1 ▶ my $proto = ref($that) || $that;
Condition33%1/3
ref $that || $that
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table33%1/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
18 1 my $self = $proto->SUPER::new(@_);
19  
20 1 bless $self, $proto;
21  
22 1 $self->{commands} = { install => 'echo %s' };
23  
24 1 return $self;
25 }
26  
27 2 1;
« lib/Rex/Virtualization/VBox.pm ↑ Summary lib/Rex/Inventory/DMIDecode/BaseBoard.pm »