File Coverage

blib/lib/Data/Record/Serialize/Role/EncodeAndSink.pm
Criterion Covered Total %
statement 15 16 93.7
branch n/a
condition n/a
subroutine 6 7 85.7
pod 0 1 0.0
total 21 24 87.5


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