blib/lib/DBIx/DR/ByteStream.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 23 SCAR 6.9
CC
1
Cov
0%
new
2.0
content
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 use strict;
3 use warnings;
4  
5 package DBIx::DR::ByteStream;
6  
7 =head1 NAME
8  
9 DBIx::DR::ByteStream - ByteStream
10  
11 =head1 SYNOPSIS
12  
13 use DBIx::DR::ByteStream;
14  
15 my $str = DBIx::DR::ByteStream->new('abc');
16  
17 print "%s\n", $str->content;
18  
19 =head1 METHODS
20  
21 =head2 new
22  
23 Constructor.
24  
25 =head2 content
26  
27 Returns content.
28  
29 =cut
30  
31  
32 sub new {
33 my ($class, $str) = @_;
34 return bless \$str => ref($class) || $class;
35 }
36  
37 sub content {
38 my ($self) = @_;
39 return $$self;
40 }
41  
42 =head1 COPYRIGHT
43  
44 Copyright (C) 2011 Dmitry E. Oboukhov <unera@debian.org>
45 Copyright (C) 2011 Roman V. Nikolaev <rshadow@rambler.ru>
46  
47 This program is free software, you can redistribute it and/or
48 modify it under the terms of the Artistic License.
49  
50 =cut
51  
52 1;