Branch Coverage

blib/lib/Data/Sah/From/JSONSchema.pm
Criterion Covered Total %
branch 10 66 15.1


line true false branch
18 0 0 if (exists $jsonsch->{'title'})
21 0 0 if (exists $jsonsch->{'description'})
24 0 0 if (exists $jsonsch->{'default'})
39 0 0 if (exists $jsonsch->{'minimum'})
42 0 0 if (exists $jsonsch->{'maximum'})
45 0 0 if (exists $jsonsch->{'exclusiveMinimum'})
48 0 0 if (exists $jsonsch->{'exclusiveMaximum'})
52 0 0 if (exists $jsonsch->{'multipleOf'})
83 0 1 if (exists $jsonsch->{'pattern'})
86 0 1 if (exists $jsonsch->{'minLength'})
89 0 1 if (exists $jsonsch->{'maxLength'})
99 0 0 if (exists $jsonsch->{'minItems'})
102 0 0 if (exists $jsonsch->{'maxItems'})
105 0 0 if (exists $jsonsch->{'items'})
106 0 0 if (ref $jsonsch->{'items'} eq 'ARRAY') { }
113 0 0 if (exists $jsonsch->{'additionalItems'} and not $jsonsch->{'additionalItems'})
127 0 0 if (exists $jsonsch->{'minProperties'})
130 0 0 if (exists $jsonsch->{'maxProperties'})
133 0 0 if (exists $jsonsch->{'properties'})
140 0 0 if (exists $jsonsch->{'additionalProperties'} and not $jsonsch->{'additionalProperties'})
143 0 0 if (exists $jsonsch->{'required'})
146 0 0 if (exists $jsonsch->{'dependencies'})
149 0 0 if (ref $v eq 'HASH') { }
160 0 0 if (exists $jsonsch->{'patternProperties'})
169 2 2 unless ref $jsonsch eq 'HASH'
170 1 1 unless my $type = $jsonsch->{'type'}
175 0 1 if ($type eq 'object') { }
0 1 elsif ($type eq 'array') { }
1 0 elsif ($type eq 'string') { }
0 0 elsif ($type eq 'boolean') { }
0 0 elsif ($type eq 'integer') { }
0 0 elsif ($type eq 'number') { }
0 0 elsif ($type eq 'null') { }