Condition Coverage

blib/lib/Bitcoin/Crypto/Bech32.pm
Criterion Covered Total %
condition 19 23 82.6


and 3 conditions

line !l l&&!r l&&r condition
261 26 5 25 not $type and verify_checksum_bech32m($hrp, $data)
276 15 8 2 $ver == 0 and $type ne "bech32"
8 11 4 $ver > 0 and $type ne "bech32m"

or 2 conditions

line l !l condition
226 41 0 $type //= "bech32m"

or 3 conditions

line l !l&&r !l&&!r condition
137 3 0 63 length $parts[0] < 1 or length $parts[0] > 83
170 2 1 16 length($bits) % 8 != 0 or length $bits < $length_padded - 4
205 0 0 1414 $num < 0 or $num > 31
276 2 4 19 $ver == 0 and $type ne "bech32" or $ver > 0 and $type ne "bech32m"