File Coverage

blib/lib/PJVM/Class/Attribute/ConstantValue.pm
Criterion Covered Total %
statement 9 15 60.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 20 60.0


line stmt bran cond sub pod time code
1             package PJVM::Class::Attribute::ConstantValue;
2              
3 3     3   16 use strict;
  3         4  
  3         155  
4 3     3   15 use warnings;
  3         6  
  3         81  
5              
6 3         16 use Object::Tiny qw(
7             constantvalue_index
8 3     3   13 );
  3         5  
9              
10             sub new_from_io {
11 0     0 0   my ($pkg, $io, $cp) = @_;
12            
13 0           my $buff;
14            
15             # Stack stuff
16 0           read $io, $buff, 2;
17 0           my $constantvalue_index = unpack("n", $buff);
18            
19 0           my $self = $pkg->new(
20             constantvalue_index => $constantvalue_index,
21             );
22            
23 0           return $self;
24             }
25              
26             1;
27             __END__