File Coverage

lib/Data/Handle/IO.pm
Criterion Covered Total %
statement 27 27 100.0
branch n/a
condition n/a
subroutine 18 18 100.0
pod n/a
total 45 45 100.0


line stmt bran cond sub pod time code
1 6     6   889 use 5.006;
  6         17  
  6         209  
2 6     6   24 use strict;
  6         8  
  6         170  
3 6     6   21 use warnings;
  6         5  
  6         1677  
4              
5             package Data::Handle::IO;
6              
7             our $VERSION = '1.000000';
8              
9             # ABSTRACT: A Tie Package so Data::Handle can look and feel like a normal handle.
10              
11             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
12              
13              
14              
15              
16              
17              
18              
19              
20              
21              
22              
23              
24              
25              
26              
27              
28             sub TIEHANDLE {
29 26     26   38 my $self = shift;
30 26         28 my $handle_object = shift;
31 26         86 return bless $handle_object, $self;
32             }
33              
34             sub _object {
35 117     117   101 my $self = shift;
36 117         272 return $self->{self};
37             }
38              
39             ## no critic (ProtectPrivateSubs)
40              
41 21     21   369 sub READLINE { return shift->_object->_readline(@_) }
42 3     3   19 sub READ { return shift->_object->_read(@_) }
43 36     36   125 sub GETC { return shift->_object->_getc(@_) }
44 1     1   8 sub WRITE { return shift->_object->_write(@_) }
45 1     1   8 sub PRINT { return shift->_object->_print(@_) }
46 1     1   9 sub PRINTF { return shift->_object->_printf(@_) }
47 42     42   221 sub EOF { return shift->_object->_eof(@_) }
48 1     1   7 sub CLOSE { return shift->_object->_close(@_) }
49 1     1   7 sub BINMODE { return shift->_object->_binmode(@_) }
50 1     1   9 sub OPEN { return shift->_object->_open(@_) }
51 1     1   10 sub FILENO { return shift->_object->_fileno(@_) }
52 6     6   61 sub SEEK { return shift->_object->_seek(@_) }
53 2     2   582 sub TELL { return shift->_object->_tell(@_) }
54              
55             1;
56              
57             __END__