Condition Coverage

blib/lib/Crypt/ScryptKDF.pm
Criterion Covered Total %
condition 24 53 45.2


and 2 conditions

line l !l condition
51 0 0 warn "scrypt_raw: 2 or 6 parameters required\n" and return undef
57 0 0 warn "scrypt_b64: 2 or 6 parameters required\n" and return undef
64 0 0 warn "scrypt_hex: 2 or 6 parameters required\n" and return undef

and 3 conditions

line !l l&&!r l&&r condition
72 0 0 9 defined $key and defined $salt
0 0 9 defined $key and defined $salt and defined $N
0 0 9 defined $key and defined $salt and defined $N and defined $r
0 0 9 defined $key and defined $salt and defined $N and defined $r and defined $p
81 0 0 1 defined $salt and defined $hash
84 0 0 1 defined $salt and defined $hash
86 0 0 1 $N > 0 and $r >= 0
0 0 1 $N > 0 and $r >= 0 and $p >= 0
125 15 0 4 ref $salt eq "SCALAR" and $$salt =~ /^\d+$/
132 3 2 14 defined $a and defined $b
134 10 4 125 $i < length $a and $i < length $b

or 2 conditions

line l !l condition
18 7 0 shift() || 32

or 3 conditions

line l !l&&r !l&&!r condition
51 1 1 0 @_ == 2 or @_ == 6
57 1 2 0 @_ == 2 or @_ == 6
64 1 4 0 @_ == 2 or @_ == 6
120 0 0 19 $N <= 0 or ($N & $N - 1) != 0