APIReference/V5_008_005.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« APIReference/V5_008_004.pm ↑ Summary APIReference/V5_008_006.pm »
1 package Perl::APIReference::V5_008_005;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Sereal::Decoder;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use parent 'Perl::APIReference';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
8 1 my $class = shift;
9 1 my $pos = tell(*DATA);
10 1 binmode(*DATA);
11 1 local $/ = undef;
12  
13 1 my $data = <DATA>;
14 1 $data =~ s/^\s+//;
15  
16 1 my $self = bless({
17 'index' => Sereal::Decoder::decode_sereal($data),
18 perl_version => '5.008005',
19 } => $class);
20  
21 1 seek(*DATA, $pos, 0);
22  
23 1 return $self;
24 }
25  
26 1 1;
27  
28 __DATA__
« APIReference/V5_008_004.pm ↑ Summary APIReference/V5_008_006.pm »