APIReference/V5_040_000.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_038_004.pm ↑ Summary APIReference/V5_040_001.pm »
1 package Perl::APIReference::V5_040_000;
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 5 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
8 5 my $class = shift;
9 5 my $pos = tell(*DATA);
10 5 binmode(*DATA);
11 5 local $/ = undef;
12  
13 5 my $data = <DATA>;
14 5 $data =~ s/^\s+//;
15  
16 5 my $self = bless({
17 'index' => Sereal::Decoder::decode_sereal($data),
18 perl_version => '5.040000',
19 } => $class);
20  
21 5 seek(*DATA, $pos, 0);
22  
23 5 return $self;
24 }
25  
26 1 1;
27  
28 __DATA__
« APIReference/V5_038_004.pm ↑ Summary APIReference/V5_040_001.pm »