Branch Coverage

lib/Schema/Validator.pm
Criterion Covered Total %
branch 21 34 61.7


line true false branch
290 0 1 if (-e $cache_file)
292 0 0 if (time - $mtime < $cache_duration)
297 0 1 if ($use_cache) { }
299 0 0 unless open my $cfh, "<", $cache_file
310 0 1 unless ($res->is_success)
316 0 1 unless open my $cfh, ">", $cache_file
322 0 1 if ($@)
330 1 0 if (exists $data->{'@graph'} and ref $data->{'@graph'} eq 'ARRAY') { }
332 0 3187 unless exists $item->{'@type'}
337 7 3180 if (ref $item_type eq 'ARRAY') { }
342 1009 2178 if ($is_class)
344 79 930 unless $label
345 0 930 ref $label eq 'ARRAY' ? :
351 7 3101 if (ref $item_type eq 'ARRAY') { }
356 1658 1450 if ($is_prop)
358 138 1520 unless $label
359 0 1520 ref $label eq 'ARRAY' ? :