Branch Coverage

blib/lib/Crypt/Passphrase.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
18 5 5 if ($arg eq '-encoder') { }
4 1 elsif ($arg eq '-validator') { }
1 0 elsif ($arg eq '-integration') { }
22 4 1 unless $caller->isa("Crypt::Passphrase::Encoder")
29 4 0 unless $caller->isa("Crypt::Passphrase::Validator")
43 0 9 $1 ? :
51 0 5 if (&Scalar::Util::blessed($encoder)) { }
1 4 elsif (ref $encoder) { }
66 0 4 if (&Scalar::Util::blessed($validator)) { }
0 4 elsif (ref $validator eq 'HASH') { }
0 4 elsif (ref $validator eq 'CODE') { }
86 0 4 unless $args{'encoder'}
90 0 4 unless $valid{$normalization}
122 10 10 if ($validator->accepts_hash($hash))