DDL/FieldType.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 3 / 3 totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DDL/Failure.pm ↑ Summary DDL/Types.pm »
1 package CXC::DB::DDL::FieldType;
2  
3 # ABSTRACT: Class for non-DBI types
4  
5 2 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use experimental 'signatures', 'postderef';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 our $VERSION = '0.21';
12  
13 2 ▶use constant { NAME => 0, TYPE => 1 };
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16  
17  
18  
19  
20 6 ▶sub new ( $class, $name, $type ) {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
21 6 return bless [ $name, $type ], $class;
22 }
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33 4 ▶sub name ( $self ) { $self->[NAME]; }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
34  
35  
36  
37  
38  
39  
40  
41  
42  
43 4 ▶sub type ( $self ) { $self->[TYPE]; }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
44  
45 #
46 # This file is part of CXC-DB-DDL
47 #
48 # This software is Copyright (c) 2022 by Smithsonian Astrophysical Observatory.
49 #
50 # This is free software, licensed under:
51 #
52 # The GNU General Public License, Version 3, June 2007
53 #
54  
55 2 1;
56  
57 __END__
« DDL/Failure.pm ↑ Summary DDL/Types.pm »