blib/lib/SPVM/Builder/Native/ClassFile.pm

filter: Statementstmt 41.1% 7 / 17 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 33.3% 9 / 27 CC 3 SCAR 14.7
CC
3
Cov
33%
pointer
6.0
compiler
6.0
BEGIN
1.0
CRAP 4.3
« blib/lib/SPVM/Builder/DependencyAnalyzer.pm ↑ Summary blib/lib/SPVM/Builder/Config/Base.pm »
1 package SPVM::Builder::Native::ClassFile;
2  
3 126 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 126 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub pointer {
Subroutine pointer: not called CC=2 SCAR=17.9
Pod undocumented
7 0 my $self = shift;
8 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) { } 0 0 0
9 0 $self->{pointer} = $_[0];
10 0 return $self;
11 }
12 else {
13 0 return $self->{pointer};
14 }
15 }
16  
17 0 ▶sub compiler {
Subroutine compiler: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my $self = shift;
19 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) { } 0 0 0
20 0 $self->{compiler} = $_[0];
21 0 return $self;
22 }
23 else {
24 0 return $self->{compiler};
25 }
26 }
27  
28 126 1;
29  
30 =head1 Name
31  
32 SPVM::Builder::Native::ClassFile - Class File Native APIs
33  
34 =head1 Copyright & License
35  
36 Copyright (c) 2023 Yuki Kimoto
37  
38 MIT License
« blib/lib/SPVM/Builder/DependencyAnalyzer.pm ↑ Summary blib/lib/SPVM/Builder/Config/Base.pm »