Serialize/Encode/array.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.8% 26 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Serialize/Sink/null.pm ↑ Summary Serialize/Encode/rdb.pm »
1 package Data::Record::Serialize::Encode::array;
2  
3 # ABSTRACT: encoded a record as /rdb
4  
5 2 ▶use v5.12;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $VERSION = '2.05';
9  
10 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13  
14  
15  
16  
17 1 ▶sub setup {
Subroutine setup: called CC=1 SCAR=0.0
Pod undocumented
18 1 my $self = shift;
19 1 $self->say( $self->output_fields );
20 }
21  
22  
23  
24  
25  
26  
27 1 ▶sub encode {
Subroutine encode: called CC=1 SCAR=0.0
Pod undocumented
28 1 my $self = shift;
29  
30 ## no critic (TestingAndDebugging::ProhibitNoWarnings)
31 2 ▶ no warnings 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 return [ @{ $_[0] }{ @{ $self->output_fields } } ];
33 }
34  
35 2 with 'Data::Record::Serialize::Role::Encode';
36  
37 2 1;
38  
39 #
40 # This file is part of Data-Record-Serialize
41 #
42 # This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
43 #
44 # This is free software, licensed under:
45 #
46 # The GNU General Public License, Version 3, June 2007
47 #
48  
49 __END__
« Serialize/Sink/null.pm ↑ Summary Serialize/Encode/rdb.pm »