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
260 26 5 25 not $type and verify_checksum_bech32m($hrp, $data)
275 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
225 41 0 $type //= "bech32m"

or 3 conditions

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