File Coverage

blib/lib/Data/Record/Serialize/Role/EncodeAndSink.pm
Criterion Covered Total %
statement 17 18 94.4
branch n/a
condition n/a
subroutine 7 8 87.5
pod 0 1 0.0
total 24 27 88.8


line stmt bran cond sub pod time code
1             package Data::Record::Serialize::Role::EncodeAndSink;
2              
3             # ABSTRACT: Both an Encode and Sink. handle unwanted/unused required routines
4              
5 4     4   8011 use v5.12;
  4         16  
6 4     4   22 use strict;
  4         17  
  4         103  
7 4     4   23 use warnings;
  4         18  
  4         287  
8              
9             our $VERSION = '1.05';
10              
11 4     4   33 use Data::Record::Serialize::Error { errors => [qw( internal )] }, -all;
  4         10  
  4         69  
12              
13 4     4   709 use Moo::Role;
  4         15  
  4         26  
14              
15 4     4   1981 use namespace::clean;
  4         10  
  4         50  
16              
17             ( *say, *print, *encode ) = map {
18             my $stub = $_;
19 0     0     sub { error( 'internal', "internal error: stub method <$stub> invoked" ) }
20             } qw( say print encode );
21              
22       12 0   sub close { }
23              
24             with 'Data::Record::Serialize::Role::Sink';
25             with 'Data::Record::Serialize::Role::Encode';
26              
27             1;
28              
29             #
30             # This file is part of Data-Record-Serialize
31             #
32             # This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
33             #
34             # This is free software, licensed under:
35             #
36             # The GNU General Public License, Version 3, June 2007
37             #
38              
39             __END__
40              
41             =pod
42              
43             =for :stopwords Diab Jerius Smithsonian Astrophysical Observatory
44              
45             =head1 NAME
46              
47             Data::Record::Serialize::Role::EncodeAndSink - Both an Encode and Sink. handle unwanted/unused required routines
48              
49             =head1 VERSION
50              
51             version 1.05
52              
53             =head1 INTERNALS
54              
55             =for Pod::Coverage say
56             print
57             encode
58             close
59              
60             =head1 SUPPORT
61              
62             =head2 Bugs
63              
64             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>
65              
66             =head2 Source
67              
68             Source is available at
69              
70             https://gitlab.com/djerius/data-record-serialize
71              
72             and may be cloned from
73              
74             https://gitlab.com/djerius/data-record-serialize.git
75              
76             =head1 SEE ALSO
77              
78             Please see those modules/websites for more information related to this module.
79              
80             =over 4
81              
82             =item *
83              
84             L<Data::Record::Serialize|Data::Record::Serialize>
85              
86             =back
87              
88             =head1 AUTHOR
89              
90             Diab Jerius <djerius@cpan.org>
91              
92             =head1 COPYRIGHT AND LICENSE
93              
94             This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
95              
96             This is free software, licensed under:
97              
98             The GNU General Public License, Version 3, June 2007
99              
100             =cut