Branch Coverage

blib/lib/JsonSQL/Validator.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
29 0 14 if (eval { do { $schema->is_error } }) { }
37 14 0 if (defined $ruleSets and 'ARRAY' eq ref $ruleSets) { }
57 1 15 if ($@) { }
63 2 13 if (@errors) { }
84 21 3 if ($ruleSet->{'schema'} eq $schema or $ruleSet->{'schema'} eq '#anySchema')
98 13 37 if ($tableRule eq '#anyTable') { }
6 31 elsif (defined $tableString and $tableRule eq $tableString) { }
116 21 3 if (@{$ruleSets;}) { }
128 6 13 unless ($tableRule eq '#anyTable')
129 6 0 if ('ARRAY' eq ref $tableRule) { }
137 2 19 unless ($table_allowed)
148 5 19 if (@table_violations) { }
165 4 1 unless $_ eq $field
5 4 unless (&any(sub { $_ eq '#anyColumn' unless $_ eq $field; } , @{$tableRule;}))
170 5 26 if (@column_violations) { }