File Coverage

lib/Rex/Pkg/Test.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition 1 3 33.3
subroutine 5 5 100.0
pod 0 1 0.0
total 23 26 88.4


line stmt bran cond sub pod time code
1             #
2             # (c) Ferenc Erki
3             #
4              
5             package Rex::Pkg::Test;
6              
7 2     2   85859 use v5.12.5;
  2         20  
8 2     2   12 use warnings;
  2         5  
  2         80  
9              
10             our $VERSION = '1.14.2.3'; # TRIAL VERSION
11              
12 2     2   485 use Rex::Pkg::Base;
  2         6  
  2         21  
13 2     2   76 use base qw(Rex::Pkg::Base);
  2         6  
  2         301  
14              
15             sub new {
16 1     1 0 128 my $that = shift;
17 1   33     7 my $proto = ref($that) || $that;
18 1         9 my $self = $proto->SUPER::new(@_);
19              
20 1         3 bless $self, $proto;
21              
22 1         9 $self->{commands} = { install => 'echo %s' };
23              
24 1         3 return $self;
25             }
26              
27             1;