Policy/Encryption.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 4 totaltotal 72.7% 24 / 33 CC 2 SCAR 3.2
CC
2
Cov
90%
prepare
2.0
enc
2.0
BEGIN
1.0
CRAP 1.4
« Policy/Rule.pm ↑ Summary Policy/Rule/Lowercase.pm »
1 package Password::Policy::Encryption;
2 4 $Password::Policy::Encryption::VERSION = '0.06';
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use Password::Policy::Exception::EmptyPassword;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 10 ▶sub new { bless {} => shift; }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
9 0 ▶sub enc { return "This was not implemented properly."; }
Subroutine enc: not called CC=1 SCAR=6.9
Pod undocumented
10  
11 # alias
12 2 ▶sub encrypt {
Subroutine encrypt: called CC=1 SCAR=0.0
Pod undocumented
13 2 my ($self, $arg) = @_;
14 2 return $self->enc($arg);
15 }
16  
17 18 ▶sub prepare {
Subroutine prepare: called CC=2 SCAR=7.1
Pod undocumented
18 18 my ($self, $password) = @_;
19 18 ▶ return $password || Password::Policy::Exception::EmptyPassword->throw;
Condition66%2/3
$password || 'Password::Policy::Exception::EmptyPassword'->throw
l!l&&r!l&&!r
1620
MC/DC0%0/2
$password || 'Password::Policy::Exception::EmptyPassword'->throw
$password 'Password::Policy::Exception::EmptyPassword'->throw
Truth table33%1/3
A || B
A= $passwordB= 'Password::Policy::Exception::EmptyPassword'->throw
ABresult
1X1
011
000
20 }
21  
22 4 1;
23  
24 __END__
« Policy/Rule.pm ↑ Summary Policy/Rule/Lowercase.pm »