Condition Coverage

blib/lib/Passwords.pm
Criterion Covered Total %
condition 4 12 33.3


and 3 conditions

line !l l&&!r l&&r condition
244 0 0 7 substr($hash, 0, 4) eq '$2y$' and length $hash == 60

or 3 conditions

line l !l&&r !l&&!r condition
138 0 0 1 not exists $options{'cost'} or $options{'cost'} =~ /\D/
0 0 1 not exists $options{'cost'} or $options{'cost'} =~ /\D/ or 0 + $options{'cost'} < 4
183 0 0 3 not defined $algo or $algo =~ /\D/