| blib/lib/Bitcoin/Crypto/Bech32.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 12 | 91.6 |
| line | true | false | branch |
|---|---|---|---|
| 50 | 17124 | 22131 | $b >> $_ & 1 ? : |
| 213 | 0 | 2068 | if $num < 0 or $num > 31 |
| 269 | 35 | 30 | if verify_checksum($hrp, $data) |
| 271 | 25 | 40 | if not $type and verify_checksum_bech32m($hrp, $data) |
| 274 | 5 | 60 | unless $type |
| 286 | 6 | 28 | if $ver == 0 and $type ne "bech32" or $ver > 0 and $type ne "bech32m" |