File Coverage

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


line stmt bran cond sub pod time code
1              
2 4     4   21 use strict;
  4         8  
  4         162  
3 4     4   156 use warnings;
  4         10  
  4         229  
4              
5             package Data::Handle::IO;
6             BEGIN {
7 4     4   1371 $Data::Handle::IO::AUTHORITY = 'cpan:KENTNL';
8             }
9             {
10             $Data::Handle::IO::VERSION = '0.02001003';
11             }
12              
13             # ABSTRACT: A Tie Package so Data::Handle can look and feel like a normal handle.
14             #
15              
16              
17             sub TIEHANDLE {
18 26     26   47 my $self = shift;
19 26         75 my $object = shift;
20 26         114 return bless $object, $self;
21             }
22              
23             sub _object {
24 117     117   142 my $self = shift;
25 117         520 return $self->{self};
26             }
27              
28             ## no critic (ProtectPrivateSubs)
29              
30 21     21   441 sub READLINE { return shift->_object->_readline(@_) }
31 3     3   26 sub READ { return shift->_object->_read(@_) }
32 36     36   211 sub GETC { return shift->_object->_getc(@_) }
33 1     1   14 sub WRITE { return shift->_object->_write(@_) }
34 1     1   10 sub PRINT { return shift->_object->_print(@_) }
35 1     1   10 sub PRINTF { return shift->_object->_printf(@_) }
36 42     42   300 sub EOF { return shift->_object->_eof(@_) }
37 1     1   9 sub CLOSE { return shift->_object->_close(@_) }
38 1     1   10 sub BINMODE { return shift->_object->_binmode(@_) }
39 1     1   10 sub OPEN { return shift->_object->_open(@_) }
40 1     1   13 sub FILENO { return shift->_object->_fileno(@_) }
41 6     6   72 sub SEEK { return shift->_object->_seek(@_) }
42 2     2   998 sub TELL { return shift->_object->_tell(@_) }
43              
44             1;
45              
46             __END__