File Coverage

blib/lib/SPVM/Builder/Runtime.pm
Criterion Covered Total %
statement 10 16 62.5
branch 1 4 25.0
condition n/a
subroutine 3 4 75.0
pod 0 2 0.0
total 14 26 53.8


line stmt bran cond sub pod time code
1             package SPVM::Builder::Runtime;
2              
3 278     278   1999 use strict;
  278         572  
  278         8260  
4 278     278   1453 use warnings;
  278         948  
  278         36370  
5              
6             sub pointer {
7 0     0 0 0 my $self = shift;
8 0 0       0 if (@_) {
9 0         0 $self->{pointer} = $_[0];
10 0         0 return $self;
11             }
12             else {
13 0         0 return $self->{pointer};
14             }
15             }
16              
17             sub env_api {
18 1061     1061 0 1741 my $self = shift;
19 1061 50       2750 if (@_) {
20 1061         2632 $self->{env_api} = $_[0];
21 1061         3062 return $self;
22             }
23             else {
24 0           return $self->{env_api};
25             }
26             }
27              
28             1;
29              
30             =head1 Name
31              
32             SPVM::Builder::Runtime - SPVM Builder Runtime
33              
34             =head1 Copyright & License
35              
36             Copyright (c) 2023 Yuki Kimoto
37              
38             MIT License