| 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
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
| |||||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 4 | 1; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||