| blib/lib/Digest/Bcrypt.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 19 | 89.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 142 | 1 | 1 | 55 | defined $cost && $cost =~ /^\d+$/ |
| 151 | 1 | 2 | 48 | $salt and &bytes::length($salt) == 16 |
| line | l | !l | condition |
|---|---|---|---|
| 61 | 0 | 12 | $self->{'type'} // "2a" |
| 114 | 8 | 12 | $self->{'type'} // "2a" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 71 | 2 | 37 | 0 | ref $class || $class |
| 142 | 1 | 2 | 52 | $cost < 5 or $cost > 31 |
| 2 | 3 | 52 | not defined $cost && $cost =~ /^\d+$/ or ($cost < 5 or $cost > 31) |