Branch Coverage

blib/lib/Bitcoin/Crypto/Transaction/Sign.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
61 10 6 $subscript ? :
77 5 2 if ($self->segwit) { }
84 2 2 if ($part->[0]->name =~ /^OP_PUSHDATA/) { }
2 0 elsif ($part->[0]->name =~ /^OP_\d+$/) { }
107 13 6 if ($self->segwit) { }
108 8 5 unless ($append)
115 6 0 unless ($append)
148 4 1 if $self->has_redeem_script
152 3 6 if (&$check_locking_script($program))
187 0 7 unless $self->has_multisig
196 7 6 if ($sig_num == $this_signature) { }
218 3 2 if (defined $segwit_nested) { }
229 0 2 unless $self->has_redeem_script
233 0 2 unless $redeem_script->has_type
235 0 2 if $redeem_script->type eq "P2SH"
259 0 5 unless $self->has_redeem_script
263 0 5 unless $redeem_script->has_type
265 0 5 if $redeem_script->type eq "P2SH"
267 0 5 if $redeem_script->type eq "P2WSH"
279 0 24 unless $self->can($method)
292 0 14 unless $self->input
296 0 14 unless $utxo->is_standard