Branch Coverage

blib/lib/Bitcoin/Crypto/Script.pm
Criterion Covered Total %
branch 11 22 50.0


line true false branch
56 24 18 if ($op_code =~ /^OP_(.+)/) { }
18 0 elsif ($op_code =~ /^[0-9]+$/ and $op_code >= 1 and $op_code <= 75) { }
66 0 0 defined $op_code ? :
95 0 20 unless $len
99 1 19 if ($bytes =~ /[\x00-\x10]/ and $len == 1) { }
105 18 1 if ($len <= {sign => '+', value => \68934016}) { }
1 0 elsif ($len < {sign => '+', value => \68817440}) { }
0 0 elsif ($len < {sign => '+', value => \68818944}) { }
0 0 elsif ($len < {sign => '+', value => \68819248}) { }
160 0 4 unless $self->network->supports_segwit
175 0 4 unless $self->network->supports_segwit