Branch Coverage

blib/lib/Authen/Passphrase/Scrypt.pm
Criterion Covered Total %
branch 12 12 100.0


line true false branch
39 1 3 if ('HASH' eq ref $args[0])
44 3 1 unless exists $args{'salt'}
47 1 3 unless defined $self->passphrase
59 1 3 unless $rfc2307 =~ m[^{SCRYPT}([A-Za-z0-9+/]{128})$]u
63 1 2 unless $scrypt eq 'scrypt'
64 1 1 unless $cksum eq truncated_sha256(substr($data, 0, 48))