File Coverage

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


line stmt bran cond sub pod time code
1 6     6   630 use 5.006;
  6         15  
2 6     6   25 use strict;
  6         6  
  6         132  
3 6     6   21 use warnings;
  6         6  
  6         1862  
4              
5             package Data::Handle::IO;
6              
7             our $VERSION = '1.000001';
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   49 my $self = shift;
30 26         37 my $handle_object = shift;
31 26         94 return bless $handle_object, $self;
32             }
33              
34             sub _object {
35 117     117   120 my $self = shift;
36 117         377 return $self->{self};
37             }
38              
39             ## no critic (ProtectPrivateSubs)
40              
41 21     21   505 sub READLINE { return shift->_object->_readline(@_) }
42 3     3   22 sub READ { return shift->_object->_read(@_) }
43 36     36   182 sub GETC { return shift->_object->_getc(@_) }
44 1     1   9 sub WRITE { return shift->_object->_write(@_) }
45 1     1   50 sub PRINT { return shift->_object->_print(@_) }
46 1     1   9 sub PRINTF { return shift->_object->_printf(@_) }
47 42     42   263 sub EOF { return shift->_object->_eof(@_) }
48 1     1   9 sub CLOSE { return shift->_object->_close(@_) }
49 1     1   13 sub BINMODE { return shift->_object->_binmode(@_) }
50 1     1   13 sub OPEN { return shift->_object->_open(@_) }
51 1     1   12 sub FILENO { return shift->_object->_fileno(@_) }
52 6     6   86 sub SEEK { return shift->_object->_seek(@_) }
53 2     2   657 sub TELL { return shift->_object->_tell(@_) }
54              
55             1;
56              
57             __END__