Passphrase/PassphraseHash.pm

filter: Statementstmt 50.0% 8 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod 100% 4 / 4 totaltotal 53.8% 14 / 26 CC 1 SCAR 5.1
CC
1
Cov
50%
new
2.0
verify_password
2.0
needs_rehash
2.0
CRAP 1.7
« Passphrase/Encoder.pm ↑ Summary Passphrase/Validator.pm »
1 package Crypt::Passphrase::PassphraseHash;
2 1 $Crypt::Passphrase::PassphraseHash::VERSION = '0.024';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
7 0 my ($class, $validator, $raw_hash) = @_;
8  
9 0 return bless {
10 validator => $validator,
11 raw_hash => $raw_hash,
12 }, $class;
13 }
14  
15 0 ▶sub verify_password {
Subroutine verify_password: not called CC=1 SCAR=6.9
Pod documented
16 0 my ($self, $password) = @_;
17 0 return $self->{validator}->verify_password($password, $self->{raw_hash});
18 }
19  
20 0 ▶sub needs_rehash {
Subroutine needs_rehash: not called CC=1 SCAR=6.9
Pod documented
21 0 my $self = shift;
22 0 return $self->{validator}->needs_rehash($self->{raw_hash});
23 }
24  
25 0 ▶sub raw_hash {
Subroutine raw_hash: not called CC=1 SCAR=6.9
Pod documented
26 0 my $self = shift;
27 0 return $self->{raw_hash};
28 }
29  
30 1 1;
31  
32 # ABSTRACT: An object representing a hash for password checking
33  
34 __END__
« Passphrase/Encoder.pm ↑ Summary Passphrase/Validator.pm »