Branch Coverage

blib/lib/Crypt/Passphrase/Scrypt.pm
Criterion Covered Total %
branch 8 12 66.6


line true false branch
35 1 4 unless my($cost, $block_size, $parallel, $salt64, $hash64) = $hash =~ /$decode_regex/x
36 0 3 if $cost != $self->{'cost'} or $block_size != $self->{'block_size'} or $parallel != $self->{'parallel'}
37 0 3 if length &decode_base64($salt64) != $self->{'salt_size'} or length &decode_base64($hash64) != $self->{'output_size'}
77 4 1 if (my($cost, $block_size, $parallel, $salt64, $hash64) = $hash =~ /$decode_regex/x) { }
1 0 elsif (my($encoded_cost, $encoded_block_size, $encoded_parallel, $salt, $encoded_hash) = $hash =~ /$regex7/x) { }
93 1 0 if (my($encoded_cost, $encoded_block_size, $encoded_parallel, $salt, $encoded_hash) = $hash =~ /$regex7/x)