Branch Coverage

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


line true false branch
93 84 1 if (not ref $config) { }
0 1 elsif (&blessed($config)) { }
100 0 0 if ($config->isa($class))
110 2 83 if (my $e = load_class($class))
111 1 1 ref $e ? :
189 2 21680 if $refmap->{$uspointer}
191 21666 14 unless ref $usschema eq "HASH" and $usschema->{'$ref'}
192 15053 6627 unless ref $usschema eq "ARRAY" or ref $usschema eq "HASH"
195 2086 4541 if ref $usschema eq "ARRAY"
204 4527 14 unless $ref
212 10 4 if $refmap->{$ref}
235 3 604 unless defined $item
237 3 601 if (ref $match eq "ARRAY")
243 17 343 if ($key =~ /^-(not_)?bool/u) { }
234 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 232 ref $test{$_} eq 'CODE' ? :
78 280 ref $test{$_} eq 'Regexp' ? :
2 358 !defined($test{$_}) ? :
368 301 30 if (ref $order_by eq 'ARRAY') { }
21 9 elsif (ref $order_by eq 'HASH') { }
369 8 303 ref $_ ? :
382 188 22 $item->[0] eq '-asc' ? :
438 4 2502 unless $type
440 593 1909 ref $type eq 'ARRAY' ? :
459 401 255 unless $format
483 212 18 if $DERPED{$key}
484 17 1 unless ($args[0] =~ /\.$/u)