Transfigure/Constants.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::Transfigure::Constants 1.03;
2 use v5.26;
3 use warnings;
4  
5 # ABSTRACT: defines constants used by Data::Transfigure and its transfigurators
6  
7 =head1 NAME
8  
9 Data::Transfigure::Constants;
10  
11 =head1 DESCRIPTION
12  
13 Defines the following constants, in ascending value order:
14  
15 =over
16  
17 =item $NO_MATCH
18  
19 =item $MATCH_DEFAULT
20  
21 =item $MATCH_INHERITED_TYPE
22  
23 =item $MATCH_EXACT_TYPE
24  
25 =item $MATCH_LIKE_VALUE
26  
27 =item $MATCH_EXACT_VALUE
28  
29 =item $MATCH_WILDCARD_POSITION
30  
31 =item $MATCH_EXACT_POSITION
32  
33 =item $MATCH_EXACT
34  
35 =back
36  
37 =cut
38  
39 use Exporter qw(import);
40 use Readonly;
41  
42 our @EXPORT = qw(
43 $NO_MATCH
44 $MATCH_DEFAULT
45 $MATCH_INHERITED_TYPE
46 $MATCH_EXACT_TYPE
47 $MATCH_LIKE_VALUE
48 $MATCH_EXACT_VALUE
49 $MATCH_WILDCARD_POSITION
50 $MATCH_EXACT_POSITION
51 $MATCH_EXACT
52 );
53  
54 Readonly::Scalar our $NO_MATCH => -1;
55 Readonly::Scalar our $MATCH_DEFAULT => 0b00000001;
56 Readonly::Scalar our $MATCH_INHERITED_TYPE => 0b00000010;
57 Readonly::Scalar our $MATCH_EXACT_TYPE => 0b00000100;
58 Readonly::Scalar our $MATCH_LIKE_VALUE => 0b00001000;
59 Readonly::Scalar our $MATCH_EXACT_VALUE => 0b00010000;
60 Readonly::Scalar our $MATCH_WILDCARD_POSITION => 0b00100000;
61 Readonly::Scalar our $MATCH_EXACT_POSITION => 0b01000000;
62 Readonly::Scalar our $MATCH_EXACT => 0b10000000;
63  
64 =pod
65  
66 =head1 AUTHOR
67  
68 Mark Tyrrell C<< <mark@tyrrminal.dev> >>
69  
70 =head1 LICENSE
71  
72 Copyright (c) 2024 Mark Tyrrell
73  
74 Permission is hereby granted, free of charge, to any person obtaining a copy
75 of this software and associated documentation files (the "Software"), to deal
76 in the Software without restriction, including without limitation the rights
77 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
78 copies of the Software, and to permit persons to whom the Software is
79 furnished to do so, subject to the following conditions:
80  
81 The above copyright notice and this permission notice shall be included in all
82 copies or substantial portions of the Software.
83  
84 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
85 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
86 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
87 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
88 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
89 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
90 SOFTWARE.
91  
92 =cut
93  
94 1;
95  
96 __END__