File Coverage

blib/lib/Data/Transform/Identity.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 2 2 100.0
total 28 28 100.0


line stmt bran cond sub pod time code
1             # vim: ts=2 sw=2 expandtab
2             package Data::Transform::Identity;
3 1     1   421 use strict;
  1         2  
  1         23  
4              
5 1     1   301 use Data::Transform;
  1         1  
  1         24  
6              
7 1     1   4 use vars qw($VERSION @ISA);
  1         1  
  1         121  
8             $VERSION = '0.01';
9             @ISA = qw(Data::Transform);
10              
11              
12             sub new {
13 1     1 1 1861 my $type = shift;
14              
15 1         1 my $self = bless [ [] ], $type;
16              
17 1         2 return $self;
18             }
19              
20             sub clone {
21 1     1 1 347 my $self = shift;
22              
23 1         2 my $clone = bless [ [] ], ref $self;
24              
25 1         2 return $clone;
26             }
27              
28             sub _handle_get_data {
29 49     49   40 my ($self, $data) = @_;
30              
31 49         72 return $data;
32             }
33              
34             sub _handle_put_data {
35 10     10   7 my ($self, $chunk) = @_;
36              
37 10         22 return $chunk;
38             }
39              
40              
41             1;
42              
43             __END__