File Coverage

blib/lib/MsgPack/Decoder/Generator/UInt.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 13 14 92.8


line stmt bran cond sub pod time code
1             package MsgPack::Decoder::Generator::UInt;
2             our $AUTHORITY = 'cpan:YANICK';
3             $MsgPack::Decoder::Generator::UInt::VERSION = '2.0.2';
4 1     1   639 use Moose;
  1         3  
  1         9  
5 1     1   7127 use MooseX::MungeHas 'is_ro';
  1         2  
  1         17  
6              
7             extends 'MsgPack::Decoder::Generator';
8              
9             has size => ( required => 1 );
10              
11 4     4   154 has '+bytes' => sub { $_[0]->size };
12              
13             sub gen_value {
14 4     4 0 9 my $self = shift;
15              
16 4         43 $self->buffer_as_int;
17             };
18              
19             1;
20              
21             __END__
22              
23             =pod
24              
25             =encoding UTF-8
26              
27             =head1 NAME
28              
29             MsgPack::Decoder::Generator::UInt
30              
31             =head1 VERSION
32              
33             version 2.0.2
34              
35             =head1 AUTHOR
36              
37             Yanick Champoux <yanick@cpan.org>
38              
39             =head1 COPYRIGHT AND LICENSE
40              
41             This software is copyright (c) 2019, 2017, 2016, 2015 by Yanick Champoux.
42              
43             This is free software; you can redistribute it and/or modify it under
44             the same terms as the Perl 5 programming language system itself.
45              
46             =cut