Serialize/Types.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Serialize/Role/Sink.pm ↑ Summary
1 package Data::Record::Serialize::Types;
2  
3 # ABSTRACT: Types for Data::Record::Serialize
4  
5 22 ▶use v5.12;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 22 our $VERSION = '2.05';
10  
11 22 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 22 ▶use Types::Standard qw( ArrayRef Str Enum );
Subroutine BEGIN: called CC=1 SCAR=0.0
13 22 ▶use Type::Library -base, -declare => qw[ ArrayOfStr SerializeType ];
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 22 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 22 declare ArrayOfStr, as ArrayRef [Str];
18  
19 22 coerce ArrayOfStr, from Str, q { [ $_ ] };
20  
21 22 declare SerializeType, as Enum [qw( N I S B)];
22  
23 #
24 # This file is part of Data-Record-Serialize
25 #
26 # This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.
27 #
28 # This is free software, licensed under:
29 #
30 # The GNU General Public License, Version 3, June 2007
31 #
32  
33 22 1;
34  
35 __END__
« Serialize/Role/Sink.pm ↑ Summary