Tangence/Types.pm

filter: Statementstmt 100% 40 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod n/a totaltotal 100% 53 / 53 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tangence/Meta/Field.pm ↑ Summary
1 # You may distribute under the terms of either the GNU General Public License
2 # or the Artistic License (the same terms as Perl itself)
3 #
4 # (C) Paul Evans, 2014 -- leonerd@leonerd.org.uk
5  
6 package Tangence::Types 0.33;
7  
8 14 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 14 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 14 our @EXPORT = qw(
13 TYPE_BOOL
14 TYPE_U8
15 TYPE_INT
16 TYPE_STR
17 TYPE_OBJ
18 TYPE_ANY
19  
20 TYPE_LIST_STR
21 TYPE_LIST_ANY
22  
23 TYPE_DICT_ANY
24 );
25  
26 14 ▶use Tangence::Type;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 14 ▶use constant TYPE_BOOL => Tangence::Type->make( "bool" );
Subroutine BEGIN: called CC=1 SCAR=0.0
29 14 ▶use constant TYPE_U8 => Tangence::Type->make( "u8" );
Subroutine BEGIN: called CC=1 SCAR=0.0
30 14 ▶use constant TYPE_INT => Tangence::Type->make( "int" );
Subroutine BEGIN: called CC=1 SCAR=0.0
31 14 ▶use constant TYPE_STR => Tangence::Type->make( "str" );
Subroutine BEGIN: called CC=1 SCAR=0.0
32 14 ▶use constant TYPE_OBJ => Tangence::Type->make( "obj" );
Subroutine BEGIN: called CC=1 SCAR=0.0
33 14 ▶use constant TYPE_ANY => Tangence::Type->make( "any" );
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 14 ▶use constant TYPE_LIST_STR => Tangence::Type->make( list => TYPE_STR );
Subroutine BEGIN: called CC=1 SCAR=0.0
36 14 ▶use constant TYPE_LIST_ANY => Tangence::Type->make( list => TYPE_ANY );
Subroutine BEGIN: called CC=1 SCAR=0.0
37  
38 14 ▶use constant TYPE_DICT_ANY => Tangence::Type->make( dict => TYPE_ANY );
Subroutine BEGIN: called CC=1 SCAR=0.0
39  
40 =head1 NAME
41  
42 C<Tangence::Types> - type constants for C<Tangence>
43  
44 =head1 DESCRIPTION
45  
46 This module is a component of L<Tangence::Client> or L<Tangence::Server>. It
47 is not intended for end-user use directly.
48  
49 =cut
50  
51 =head1 AUTHOR
52  
53 Paul Evans <leonerd@leonerd.org.uk>
54  
55 =cut
56  
57 14 0x55AA;
« Tangence/Meta/Field.pm ↑ Summary