Condition Coverage

blib/lib/Crypt/PBE/PBKDF1.pm
Criterion Covered Total %
condition 22 44 50.0


and 3 conditions

line !l l&&!r l&&r condition
134 1 5 3 $hash ne 'md2' and $hash ne 'md5'
6 3 0 $hash ne 'md2' and $hash ne 'md5' and $hash ne 'sha1'
143 4 5 0 $hash eq 'md5' and $dkLen > 16
8 1 0 $hash eq 'md2' and $dkLen > 16
6 3 0 $hash eq 'sha1' and $dkLen > 20

or 2 conditions

line l !l condition
44 0 1 delete $params{'count'} || 1000
45 0 1 delete $params{'hash'} || 'sha1'
128 9 0 delete $params{'hash'} || 'sha1'
131 9 0 delete $params{'count'} || 1000

or 3 conditions

line l !l&&r !l&&!r condition
42 1 0 0 delete $params{'password'} || croak('Specify password')
43 1 0 0 delete $params{'salt'} || croak('Specify salt')
48 0 0 1 $hash eq 'md5' or $hash eq 'md2'
129 9 0 0 delete $params{'password'} || croak('Specify password')
130 9 0 0 delete $params{'salt'} || croak('Specify salt')
143 0 0 9 $hash eq 'md5' and $dkLen > 16 or $hash eq 'md2' and $dkLen > 16
0 0 9 $hash eq 'md5' and $dkLen > 16 or $hash eq 'md2' and $dkLen > 16 or $hash eq 'sha1' and $dkLen > 20