Crypto/Transaction/Signer/CompatP2WSH.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Crypto/Transaction/ControlBlock.pm ↑ Summary Crypto/Transaction/Signer/CustomLegacy.pm »
1 package Bitcoin::Crypto::Transaction::Signer::CompatP2WSH;
2 3 $Bitcoin::Crypto::Transaction::Signer::CompatP2WSH::VERSION = '4.005';
3 3 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Mooish::Base -standard;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Bitcoin::Crypto::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Bitcoin::Crypto::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Bitcoin::Crypto::Types -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 extends 'Bitcoin::Crypto::Transaction::Signer::CompatSegwit';
13  
14 sub _initialize
15 4 ▶{
Subroutine _initialize: called CC=1 SCAR=0.0
16 4 my ($self) = @_;
17  
18 # do not use add_bytes (not part of this script)
19 4 push @{$self->_signature}, $self->script->to_serialized;
20  
21 4 $self->set_witness_program($self->script->witness_program);
22 }
23  
24 3 1;
25  
« Crypto/Transaction/ControlBlock.pm ↑ Summary Crypto/Transaction/Signer/CustomLegacy.pm »