File Coverage

blib/lib/JSON/Path/Constants.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1 17     17   110 use strict;
  17         30  
  17         465  
2 17     17   82 use warnings;
  17         27  
  17         356  
3 17     17   233 use 5.008;
  17         51  
4              
5             package JSON::Path::Constants;
6             $JSON::Path::Constants::VERSION = '0.430';
7             # ABSTRACT: Constants used in the JSON::Path distribution
8              
9             # VERSION
10              
11 17     17   8119 use Readonly;
  17         58864  
  17         1472  
12              
13             use Exporter::Easy (
14 17         176 TAGS => [
15             symbols => [
16             '$DOLLAR_SIGN', '$COMMERCIAL_AT', '$FULL_STOP', '$LEFT_SQUARE_BRACKET',
17             '$RIGHT_SQUARE_BRACKET', '$ASTERISK', '$COLON', '$LEFT_PARENTHESIS',
18             '$RIGHT_PARENTHESIS', '$COMMA', '$QUESTION_MARK', '$EQUAL_SIGN',
19             '$EXCLAMATION_MARK', '$GREATER_THAN_SIGN', '$LESS_THAN_SIGN', '$QUOTATION_MARK',
20             '$APOSTROPHE'
21             ],
22             operators => [
23             '$TOKEN_ROOT', '$TOKEN_CURRENT',
24             '$TOKEN_CHILD', '$TOKEN_RECURSIVE',
25             '$TOKEN_ALL', '$TOKEN_FILTER_OPEN',
26             '$TOKEN_SCRIPT_OPEN', '$TOKEN_FILTER_SCRIPT_CLOSE',
27             '$TOKEN_SUBSCRIPT_OPEN', '$TOKEN_SUBSCRIPT_CLOSE',
28             '$TOKEN_UNION', '$TOKEN_ARRAY_SLICE',
29             '$TOKEN_SINGLE_EQUAL', '$TOKEN_DOUBLE_EQUAL',
30             '$TOKEN_TRIPLE_EQUAL', '$TOKEN_GREATER_THAN',
31             '$TOKEN_LESS_THAN', '$TOKEN_NOT_EQUAL',
32             '$TOKEN_GREATER_EQUAL', '$TOKEN_LESS_EQUAL',
33             ],
34             ]
35 17     17   8079 );
  17         23932  
36              
37             Readonly our $QUOTATION_MARK => q{"};
38             Readonly our $APOSTROPHE => q{'};
39             Readonly our $DOLLAR_SIGN => '$';
40             Readonly our $COMMERCIAL_AT => '@';
41             Readonly our $FULL_STOP => '.';
42             Readonly our $LEFT_SQUARE_BRACKET => '[';
43             Readonly our $RIGHT_SQUARE_BRACKET => ']';
44             Readonly our $ASTERISK => '*';
45             Readonly our $COLON => ':';
46             Readonly our $LEFT_PARENTHESIS => '(';
47             Readonly our $RIGHT_PARENTHESIS => ')';
48             Readonly our $COMMA => ',';
49             Readonly our $QUESTION_MARK => '?';
50             Readonly our $EQUAL_SIGN => '=';
51             Readonly our $EXCLAMATION_MARK => '!';
52             Readonly our $GREATER_THAN_SIGN => '>';
53             Readonly our $LESS_THAN_SIGN => '<';
54              
55             Readonly our $TOKEN_ROOT => $DOLLAR_SIGN;
56             Readonly our $TOKEN_CURRENT => $COMMERCIAL_AT;
57             Readonly our $TOKEN_CHILD => $FULL_STOP;
58             Readonly our $TOKEN_RECURSIVE => $FULL_STOP . $FULL_STOP;
59             Readonly our $TOKEN_ALL => $ASTERISK;
60             Readonly our $TOKEN_FILTER_OPEN => $LEFT_SQUARE_BRACKET . $QUESTION_MARK . $LEFT_PARENTHESIS;
61             Readonly our $TOKEN_SCRIPT_OPEN => $LEFT_SQUARE_BRACKET . $LEFT_PARENTHESIS;
62             Readonly our $TOKEN_FILTER_SCRIPT_CLOSE => $RIGHT_PARENTHESIS . $RIGHT_SQUARE_BRACKET;
63             Readonly our $TOKEN_SUBSCRIPT_OPEN => $LEFT_SQUARE_BRACKET;
64             Readonly our $TOKEN_SUBSCRIPT_CLOSE => $RIGHT_SQUARE_BRACKET;
65             Readonly our $TOKEN_UNION => $COMMA;
66             Readonly our $TOKEN_ARRAY_SLICE => $COLON;
67             Readonly our $TOKEN_SINGLE_EQUAL => $EQUAL_SIGN;
68             Readonly our $TOKEN_DOUBLE_EQUAL => $EQUAL_SIGN . $EQUAL_SIGN;
69             Readonly our $TOKEN_TRIPLE_EQUAL => $EQUAL_SIGN . $EQUAL_SIGN . $EQUAL_SIGN;
70             Readonly our $TOKEN_GREATER_THAN => $GREATER_THAN_SIGN;
71             Readonly our $TOKEN_LESS_THAN => $LESS_THAN_SIGN;
72             Readonly our $TOKEN_NOT_EQUAL => $EXCLAMATION_MARK . $EQUAL_SIGN;
73             Readonly our $TOKEN_GREATER_EQUAL => $GREATER_THAN_SIGN . $EQUAL_SIGN;
74             Readonly our $TOKEN_LESS_EQUAL => $LESS_THAN_SIGN . $EQUAL_SIGN;
75              
76             1;
77              
78             __END__