Branch Coverage

blib/lib/Crypt/Passphrase/Pepper/Base.pm
Criterion Covered Total %
branch 11 16 68.7


line true false branch
15 0 1 unless defined $args{'active'}
16 0 1 if $args{'active'} =~ /\W/
17 0 1 unless defined $args{'algorithm'}
29 2 2 if ($hash =~ s/ (?<= \A \$) ([\w-]+?)-pepper-([\w-]+) \$ v=1 , id=([^\$,]+) /$1/x) { }
59 1 1 unless my($primary, $type, $id) = _to_inner($hash)
66 1 1 if (my($primary, $type, $id) = _to_inner($hash)) { }
1 0 elsif ($self->{'inner'}->accepts_hash($hash)) { }
67 0 1 unless my $prehashed = eval { do { $self->prehash_password($password, $type, $id) } }