lib/TUI/Validate/Const.pm

filter: Statementstmt 100% 36 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 44 / 44 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/TUI/StdDlg/Const.pm ↑ Summary lib/TUI/Views/Const.pm »
1 package TUI::Validate::Const;
2 # ABSTRACT: constants for validator components
3
4 25 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 25 our $VERSION = '2.000002';
9 25 $VERSION =~ tr/_//d;
10 25 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 25 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 25 our @EXPORT_OK = qw(
15 );
16
17 25 our %EXPORT_TAGS = (
18
19 TPicResult => [qw(
20 prComplete
21 prIncomplete
22 prEmpty
23 prError
24 prSyntax
25 prAmbiguous
26 prIncompNoFill
27 )],
28
29 voXXXX => [qw(
30 voFill
31 voTransfer
32 voReserved
33 )],
34
35 vsXXXX => [qw(
36 vsOk
37 vsSyntax
38 )],
39
40 TVTransfer => [qw(
41 vtDataSize
42 vtSetData
43 vtGetData
44 )],
45
46 );
47
48 # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and
49 # @EXPORT_OK, deleting duplicates
50 {
51 25 my %seen;
52 push
53 @EXPORT_OK,
54 375 grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}}
55 25 foreach keys %EXPORT_TAGS;
56 push
57 25 @{$EXPORT_TAGS{all}},
58 @EXPORT_OK;
59 }
60
61 # TPXPictureValidator result type TPicResult
62 25 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
63 25 prComplete => 0,
64 prIncomplete => 1,
65 prEmpty => 2,
66 prError => 3,
67 prSyntax => 4,
68 prAmbiguous => 5,
69 prIncompNoFill => 6,
70 25 };
71
72 # Validator option flags
73 25 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
74 25 voFill => 0x0001,
75 voTransfer => 0x0002,
76 voReserved => 0x00fc,
77 25 };
78
79 # TValidator Status constants
80 25 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
81 25 vsOk => 0,
82 vsSyntax => 1, # Error in the syntax of either a TPXPictureValidator
83 25 }; # or a TDBPictureValidator
84
85 # TVTransfer constants
86 25 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
87 25 vtDataSize => 0,
88 vtSetData => 1,
89 vtGetData => 2,
90 25 };
91
92 25 1
93
94 __END__
« lib/TUI/StdDlg/Const.pm ↑ Summary lib/TUI/Views/Const.pm »