File Coverage

blib/lib/Data/Serializer/Data/Taxi.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 2 2 100.0
total 25 25 100.0


line stmt bran cond sub pod time code
1             package Data::Serializer::Data::Taxi;
2 11     11   600 BEGIN { @Data::Serializer::Data::Taxi::ISA = qw(Data::Serializer) }
3              
4 11     11   92 use warnings;
  11         29  
  11         430  
5 11     11   66 use strict;
  11         24  
  11         322  
6 11     11   86 use Data::Taxi;
  11         25  
  11         684  
7 11     11   77 use vars qw($VERSION @ISA);
  11         33  
  11         1882  
8              
9             $VERSION = '0.02';
10              
11              
12             sub serialize {
13 168     168 1 819 return Data::Taxi::freeze($_[1]);
14             }
15              
16             sub deserialize {
17 168     168 1 897 my ($obj) = Data::Taxi::thaw($_[1]);
18 168         122854 return $obj;
19             }
20              
21              
22              
23             1;
24             __END__
25             #
26              
27             =head1 NAME
28              
29             Data::Serializer::Data::Taxi - Creates bridge between Data::Serializer and Data::Taxi
30              
31             =head1 SYNOPSIS
32              
33             use Data::Serializer::Data::Taxi;
34              
35             =head1 DESCRIPTION
36              
37             Module is used internally to Data::Serializer
38              
39              
40             =over 4
41              
42             =item B<serialize> - Wrapper to normalize serializer method name
43              
44             =item B<deserialize> - Wrapper to normalize deserializer method name
45              
46             =back
47              
48             =head1 AUTHOR
49              
50             Neil Neely <neil@neely.cx>
51              
52             =head1 COPYRIGHT
53              
54             Copyright 2001 by Neil Neely. All rights reserved.
55             This program is free software; you can redistribute it
56             and/or modify it under the same terms as Perl itself.
57              
58             =head1 SEE ALSO
59              
60             perl(1), Data::Serializer(3), Data::Taxi(3).
61              
62             =cut