File Coverage

blib/lib/Data/Record/Serialize/Encode/null.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 5 8 62.5
pod 0 5 0.0
total 13 21 61.9


line stmt bran cond sub pod time code
1             package Data::Record::Serialize::Encode::null;
2              
3             # ABSTRACT: infinite bitbucket
4              
5 5     5   4361 use v5.12;
  5         20  
6 5     5   28 use Moo::Role;
  5         12  
  5         56  
7              
8             our $VERSION = '1.05';
9              
10 5     5   2570 use namespace::clean;
  5         11  
  5         68  
11              
12              
13              
14              
15              
16              
17              
18              
19              
20              
21       0 0   sub encode { }
22       15 0   sub send { }
23       0 0   sub print { }
24       0 0   sub say { }
25       24 0   sub close { }
26              
27             with 'Data::Record::Serialize::Role::Encode';
28             with 'Data::Record::Serialize::Role::Sink';
29              
30             1;
31              
32             #
33             # This file is part of Data-Record-Serialize
34             #
35             # This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
36             #
37             # This is free software, licensed under:
38             #
39             # The GNU General Public License, Version 3, June 2007
40             #
41              
42             __END__
43              
44             =pod
45              
46             =for :stopwords Diab Jerius Smithsonian Astrophysical Observatory
47              
48             =head1 NAME
49              
50             Data::Record::Serialize::Encode::null - infinite bitbucket
51              
52             =head1 VERSION
53              
54             version 1.05
55              
56             =head1 SYNOPSIS
57              
58             use Data::Record::Serialize;
59              
60             my $s = Data::Record::Serialize->new( encode => 'null', ... );
61              
62             $s->send( \%record );
63              
64             =head1 DESCRIPTION
65              
66             B<Data::Record::Serialize::Encode::null> is both an encoder and a sink.
67             All records sent using it will disappear.
68              
69             It performs both the L<Data::Record::Serialize::Role::Encode> and
70             L<Data::Record::Serialize::Role::Sink> roles.
71              
72             =head1 INTERNALS
73              
74             =for Pod::Coverage encode
75             send
76             print
77             say
78             close
79              
80             =head1 INTERFACE
81              
82             There are no additional attributes which may be passed to
83             L<< Data::Record::Serialize::new|Data::Record::Serialize/new >>.
84              
85             =head1 SUPPORT
86              
87             =head2 Bugs
88              
89             Please report any bugs or feature requests to bug-data-record-serialize@rt.cpan.org or through the web interface at: L<https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize>
90              
91             =head2 Source
92              
93             Source is available at
94              
95             https://gitlab.com/djerius/data-record-serialize
96              
97             and may be cloned from
98              
99             https://gitlab.com/djerius/data-record-serialize.git
100              
101             =head1 SEE ALSO
102              
103             Please see those modules/websites for more information related to this module.
104              
105             =over 4
106              
107             =item *
108              
109             L<Data::Record::Serialize|Data::Record::Serialize>
110              
111             =back
112              
113             =head1 AUTHOR
114              
115             Diab Jerius <djerius@cpan.org>
116              
117             =head1 COPYRIGHT AND LICENSE
118              
119             This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
120              
121             This is free software, licensed under:
122              
123             The GNU General Public License, Version 3, June 2007
124              
125             =cut