PJVM/Class/Attribute/Exceptions.pm

filter: Statementstmt 55.5% 10 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 56.5% 13 / 23 CC 1 SCAR 2.2
CC
1
Cov
56%
new_from_io
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« PJVM/Types.pm ↑ Summary PJVM/Class/Attribute/ConstantValue.pm »
1 package PJVM::Class::Attribute::Exceptions;
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 exceptions_index_table
8 3 );
9  
10 0 ▶sub new_from_io {
Subroutine new_from_io: not called CC=1 SCAR=6.9
Pod undocumented
11 0 my ($pkg, $io, $cp) = @_;
12
13 0 my $buff;
14
15 # Number of exceptions
16 0 read $io, $buff, 2;
17 0 my $number_of_exceptions = unpack("n", $buff);
18
19 0 read $io, $buff, $number_of_exceptions * 2;
20 0 my @exceptions_index_table = unpack("n*", $buff);
21
22 0 my $self = $pkg->new(
23 exceptions_index_table => \@exceptions_index_table,
24 );
25
26 0 return $self;
27 }
28  
29 3 1;
30 __END__
« PJVM/Types.pm ↑ Summary PJVM/Class/Attribute/ConstantValue.pm »