PJVM/Class/Attribute/LocalVariableTable.pm

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 48.1% 13 / 27 CC 2 SCAR 11.0
CC
2
Cov
45%
new_from_io
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« PJVM/Class/Attribute/InnerClasses.pm ↑ Summary PJVM/ClassLoader.pm »
1 package PJVM::Class::Attribute::LocalVariableTable;
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 local_variable_table
8 3 );
9  
10 0 ▶sub new_from_io {
Subroutine new_from_io: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my ($pkg, $io, $cp) = @_;
12
13 0 my $buff;
14
15 0 read $io, $buff, 2;
16 0 my $local_variable_table_length = unpack("n", $buff);
17
18 0 my @classes;
19 0 ▶ while ($local_variable_table_length--) {
Branch: 1 branch
BranchTrueFalseTotal
if ($local_variable_table_length--) 0 0 0
20 0 read $io, $buff, 10;
21 0 push @classes, [unpack("n*", $buff)];
22 }
23
24 0 my $self = $pkg->new(
25 local_variable_table => \@classes,
26 );
27
28 0 return $self;
29 }
30  
31 3 1;
32 __END__
« PJVM/Class/Attribute/InnerClasses.pm ↑ Summary PJVM/ClassLoader.pm »