Crypto/Script/Compiler/Opcode.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 4 / 4 totaltotal 83.3% 20 / 24 CC 2 SCAR 8.9
CC
2
Cov
79%
push_data
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Crypto/Exception.pm ↑ Summary Crypto/Transaction/Signer/Legacy.pm »
1 package Bitcoin::Crypto::Script::Compiler::Opcode;
2 64 $Bitcoin::Crypto::Script::Compiler::Opcode::VERSION = '4.005';
3 64 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 64 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub new
7 2271 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod documented
8 2271 my ($class, $opcode, $raw) = @_;
9  
10 2271 return bless [$opcode, $raw], $class;
11 }
12  
13 sub opcode
14 5 ▶{
Subroutine opcode: called CC=1 SCAR=0.0
Pod documented
15 5 return $_[0][0];
16 }
17  
18 sub raw_data
19 5 ▶{
Subroutine raw_data: called CC=1 SCAR=0.0
Pod documented
20 5 return $_[0][1];
21 }
22  
23 sub push_data
24 0 ▶{
Subroutine push_data: not called CC=2 SCAR=17.9
Pod documented
25 0 ▶ return $_[0][0]->pushop ? $_[0][2] : undef;
Branch: 1 branch
BranchTrueFalseTotal
$_[0][0]->pushop ? : 0 0 0
26 }
27  
28 64 1;
29  
30 __END__
« Crypto/Exception.pm ↑ Summary Crypto/Transaction/Signer/Legacy.pm »