File Coverage

blib/lib/Perl/APIReference/V5_012_000.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 27 27 100.0


line stmt bran cond sub pod time code
1             package Perl::APIReference::V5_012_000;
2 1     1   6 use strict;
  1         1  
  1         28  
3 1     1   6 use warnings;
  1         2  
  1         26  
4 1     1   6 use Sereal::Decoder;
  1         2  
  1         42  
5 1     1   6 use parent 'Perl::APIReference';
  1         2  
  1         6  
6              
7             sub new {
8 7     7 1 13 my $class = shift;
9 7         15 my $pos = tell(*DATA);
10 7         16 binmode(*DATA);
11 7         25 local $/ = undef;
12              
13 7         405 my $data = ;
14 7         20 $data =~ s/^\s+//;
15              
16 7         21564 my $self = bless({
17             'index' => Sereal::Decoder::decode_sereal($data),
18             perl_version => '5.012000',
19             } => $class);
20              
21 7         70 seek(*DATA, $pos, 0);
22              
23 7         43 return $self;
24             }
25              
26             1;
27              
28             __DATA__