| blib/lib/Authen/Passphrase/MySQL41.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 20 | 65.0 |
| line | true | false | branch |
|---|---|---|---|
| 91 | 2 | 4 | if ($attr eq 'hash') { } |
| 3 | 1 | elsif ($attr eq 'hash_hex') { } | |
| 1 | 0 | elsif ($attr eq 'passphrase') { } | |
| 92 | 0 | 2 | if exists $$self{'hash'} or defined $passphrase |
| 95 | 0 | 2 | unless $value =~ /\A[\x00-\xff]{20}\z/ |
| 99 | 0 | 3 | if exists $$self{'hash'} or defined $passphrase |
| 102 | 0 | 3 | unless $value =~ /\A[0-9A-Fa-f]{40}\z/ |
| 107 | 0 | 1 | if exists $$self{'hash'} or defined $passphrase |
| 115 | 1 | 5 | if defined $passphrase |
| 116 | 0 | 6 | unless exists $$self{'hash'} |