Condition Coverage

File:blib/lib/Database/BI/Password.pm
Coverage:94.0%

line%coveragecondition
82100
ABdec
0X0
100
111
defined $bytes and length $bytes == $n
100
Adec
00
11
$bytes // ""
106100
ABCdec
0XX0
10X0
1100
1111
defined $password and not ref $password and length $password
10967
ABdec
000
011
1X1
$opts{'rounds'} // $DEFAULT_ROUNDS
110100
ABCdec
0XX0
10X0
1100
1111
$rounds =~ /\A[0-9]+\z/ and $rounds >= $MIN_ROUNDS and $rounds <= $MAX_ROUNDS
11267
ABdec
000
011
1X1
$opts{'salt'} // _random_bytes($SALT_BYTES)
114100
ABdec
0X0
100
111
not ref $salt || $salt =~ /[^\x00-\xff]/ and length $salt == $SALT_BYTES
100
ABdec
000
011
1X1
ref $salt || $salt =~ /[^\x00-\xff]/
122100
ABCdec
0XX0
10X0
1100
1111
defined $hash and not ref $hash and $hash =~ /$HASH_RE/
12367
ABdec
0X0
100
111
$1 >= $MIN_ROUNDS && $1 <= $MAX_ROUNDS
128100
ABCDEdec
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
defined $password and not ref $password and length $password and not $password =~ /\0\z/ and is_password_hash($hash)