| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
1
|
|
|
1
|
|
297713
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
27
|
|
|
2
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
75
|
|
|
3
|
|
|
|
|
|
|
package Test::JSON::Schema; # git description: db019d2 |
|
4
|
|
|
|
|
|
|
# vim: set ts=8 sts=2 sw=2 tw=100 et : |
|
5
|
|
|
|
|
|
|
# ABSTRACT: Test your data against a JSON Schema |
|
6
|
|
|
|
|
|
|
# KEYWORDS: JSON Schema test structured data |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.001'; |
|
9
|
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
16
|
use 5.020; |
|
|
1
|
|
|
|
|
3
|
|
|
11
|
1
|
|
|
1
|
|
3
|
use strictures 2; |
|
|
1
|
|
|
|
|
7
|
|
|
|
1
|
|
|
|
|
28
|
|
|
12
|
1
|
|
|
1
|
|
373
|
use stable 0.031 'postderef'; |
|
|
1
|
|
|
|
|
13
|
|
|
|
1
|
|
|
|
|
6
|
|
|
13
|
1
|
|
|
1
|
|
156
|
use experimental 'signatures'; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
2
|
|
|
14
|
1
|
|
|
1
|
|
42
|
no autovivification warn => qw(fetch store exists delete); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
5
|
|
|
15
|
1
|
|
|
1
|
|
55
|
use if "$]" >= 5.022, experimental => 're_strict'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
17
|
|
|
16
|
1
|
|
|
1
|
|
58
|
no if "$]" >= 5.031009, feature => 'indirect'; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
52
|
|
|
17
|
1
|
|
|
1
|
|
3
|
no if "$]" >= 5.033001, feature => 'multidimensional'; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
41
|
|
|
18
|
1
|
|
|
1
|
|
3
|
no if "$]" >= 5.033006, feature => 'bareword_filehandles'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
113
|
|
|
19
|
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub json_schema ($schema) { |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
die 'not yet implemented'; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub load_json_schema ($schema_or_filename) { |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
die 'not yet implemented'; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |