Branch Coverage

blib/lib/Yancy/Util.pm
Criterion Covered Total %
branch 82 94 87.2


line true false branch
93 85 1 if (not ref $config) { }
0 1 elsif (&blessed($config)) { }
100 0 0 if ($config->isa($class))
110 2 84 if (my $e = load_class($class))
111 1 1 ref $e ? :
189 2 21722 if $refmap->{$uspointer}
191 21708 14 unless ref $usschema eq "HASH" and $usschema->{'$ref'}
192 15079 6643 unless ref $usschema eq "ARRAY" or ref $usschema eq "HASH"
195 2090 4553 if ref $usschema eq "ARRAY"
204 4539 14 unless $ref
212 10 4 if $refmap->{$ref}
235 3 608 unless defined $item
237 3 605 if (ref $match eq "ARRAY")
243 17 346 if ($key =~ /^-(not_)?bool/u) { }
237 109 elsif (not ref $match->{$key}) { }
105 4 elsif (ref $match->{$key} eq 'HASH') { }
4 0 elsif (ref $match->{$key} eq 'ARRAY') { }
248 11 6 $want_false ? :
255 78 27 if (my $value = $match->{$key}{'-like'} || $match->{$key}{'like'}) { }
9 18 elsif ($value = $match->{$key}{'-has'}) { }
9 9 elsif ($value = $match->{$key}{'-not_has'}) { }
9 0 elsif (exists $match->{$key}{'!='}) { }
264 1 8 unless defined $value
265 4 4 if (ref $value eq 'ARRAY') { }
4 0 elsif (ref $value eq 'HASH') { }
266 2 2 if (ref $expect eq 'ARRAY') { }
2 0 elsif (not ref $expect) { }
274 4 0 if (ref $expect eq 'HASH') { }
290 1 8 unless defined $value
291 4 4 if (ref $value eq 'ARRAY') { }
4 0 elsif (ref $value eq 'HASH') { }
292 2 2 if (ref $expect eq 'ARRAY') { }
2 0 elsif (not ref $expect) { }
303 4 0 if (ref $expect eq 'HASH') { }
319 9 0 unless (defined $expect and defined $got)
348 48 235 ref $test{$_} eq 'CODE' ? :
78 283 ref $test{$_} eq 'Regexp' ? :
2 361 !defined($test{$_}) ? :
368 310 30 if (ref $order_by eq 'ARRAY') { }
21 9 elsif (ref $order_by eq 'HASH') { }
369 8 313 ref $_ ? :
382 198 22 $item->[0] eq '-asc' ? :
438 4 2532 unless $type
440 593 1939 ref $type eq 'ARRAY' ? :
459 405 255 unless $format
483 218 18 if $DERPED{$key}
484 17 1 unless ($args[0] =~ /\.$/u)