lib/Rex/User/Base.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 3 totaltotal 59.2% 16 / 27 CC 2 SCAR 5.2
CC
2
Cov
76%
new
2.1
lock_password
2.0
unlock_password
2.0
CRAP 1.7
« lib/Rex/Transaction.pm ↑ Summary lib/Rex/Fork/Task.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::User::Base;
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 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
13 2 my $that = shift;
14 2 ▶ my $proto = ref($that) || $that;
Condition33%1/3
ref $that || $that
l!l&&r!l&&!r
020
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table33%1/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
15 2 my $self = {@_};
16  
17 2 bless( $self, $proto );
18  
19 2 return $self;
20 }
21  
22 0 ▶sub lock_password {
Subroutine lock_password: not called CC=1 SCAR=6.9
Pod undocumented
23  
24 # Overridden in those classes that implement it
25 0 die "lock_password is not available on this operating system";
26 }
27  
28 0 ▶sub unlock_password {
Subroutine unlock_password: not called CC=1 SCAR=6.9
Pod undocumented
29  
30 # Overridden in those classes that implement it
31 0 die "unlock_password is not available on this operating system";
32 }
33  
34 2 1;
« lib/Rex/Transaction.pm ↑ Summary lib/Rex/Fork/Task.pm »