PJVM/Class/Attribute/SourceFile.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.2% 20 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PJVM/Runtime.pm ↑ Summary PJVM/Access.pm »
1 package PJVM::Class::Attribute::SourceFile;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Object::Tiny qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
7 sourcefile_index
8 3 );
9  
10 3 ▶sub new_from_io {
Subroutine new_from_io: called CC=1 SCAR=0.0
Pod undocumented
11 3 my ($pkg, $io, $cp) = @_;
12
13 3 my $buff;
14
15 3 read $io, $buff, 2;
16 3 my $sourcefile_index = unpack("n", $buff);
17
18 3 my $self = $pkg->new(
19 sourcefile_index => $sourcefile_index,
20 );
21
22 3 return $self;
23 }
24  
25 3 1;
26 __END__
« PJVM/Runtime.pm ↑ Summary PJVM/Access.pm »