File Coverage

blib/lib/MsgPack/Raw/Packer.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package MsgPack::Raw::Packer;
2             $MsgPack::Raw::Packer::VERSION = '0.04';
3 18     18   97 use strict;
  18         29  
  18         407  
4 18     18   73 use warnings;
  18         25  
  18         322  
5 18     18   66 use MsgPack::Raw;
  18         29  
  18         520  
6              
7             =head1 NAME
8              
9             MsgPack::Raw::Packer - msgpack Packer class
10              
11             =head1 VERSION
12              
13             version 0.04
14              
15             =head1 DESCRIPTION
16              
17             MessagePack packer
18              
19             =head1 SYNOPSIS
20              
21             use MsgPack::Raw;
22              
23             my $packer = MsgPack::Raw::Packer->new;
24             my $string = $packer->pack ({ a => 'b', c => [undef, 1, 2, '3']});
25              
26             =head1 METHODS
27              
28             =head2 new ( )
29              
30             Create a new packer.
31              
32             =head2 pack ( $data )
33              
34             Pack C<$data> into a msgpack string. Objects other than C
35             and C cannot be packed.
36              
37             =head1 AUTHOR
38              
39             Jacques Germishuys
40              
41             =head1 LICENSE AND COPYRIGHT
42              
43             Copyright 2019 Jacques Germishuys.
44              
45             This program is free software; you can redistribute it and/or modify it
46             under the terms of either: the GNU General Public License as published
47             by the Free Software Foundation; or the Artistic License.
48              
49             See http://dev.perl.org/licenses/ for more information.
50              
51             =cut
52              
53             1; # End of MsgPack::Raw::Packer