| line | % | coverage | condition |
| 82 | 100 | | defined $bytes and length $bytes == $n |
| 100 | | $bytes // "" |
| 106 | 100 | | defined $password and not ref $password and length $password |
| 109 | 67 | | $opts{'rounds'} // $DEFAULT_ROUNDS |
| 110 | 100 | | $rounds =~ /\A[0-9]+\z/ and $rounds >= $MIN_ROUNDS and $rounds <= $MAX_ROUNDS |
| 112 | 67 | | $opts{'salt'} // _random_bytes($SALT_BYTES) |
| 114 | 100 | | not ref $salt || $salt =~ /[^\x00-\xff]/ and length $salt == $SALT_BYTES |
| 100 | | ref $salt || $salt =~ /[^\x00-\xff]/ |
| 122 | 100 | | defined $hash and not ref $hash and $hash =~ /$HASH_RE/ |
| 123 | 67 | | $1 >= $MIN_ROUNDS && $1 <= $MAX_ROUNDS |
| 128 | 100 | | A | B | C | D | E | dec |
|---|
| 0 | X | X | X | X | 0 | | 1 | 0 | X | X | X | 0 | | 1 | 1 | 0 | X | X | 0 | | 1 | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 | 1 |
| defined $password and not ref $password and length $password and not $password =~ /\0\z/ and is_password_hash($hash) |