Branch Coverage

blib/lib/DBIx/QuickORM/Util.pm
Criterion Covered Total %
branch 33 52 63.4


line true false branch
35 71 352 if ($prefix)
36 55 16 unless $class =~ s/^\+// or $class =~ /^$prefix\b/
63 6 18 if $seen{$name}++
68 6 12 if ($a and $b)
72 6 0 if ($bl) { }
0 0 elsif ($r eq 'HASH') { }
0 0 elsif ($r eq 'ARRAY') { }
83 6 6 if ($bl) { }
6 0 elsif ($r eq 'ARRAY') { }
0 0 elsif ($r eq 'HASH') { }
95 0 56 unless ref $hash eq "HASH"
101 0 127 unless my $val = $hash->{$name}
102 82 45 if (builtin::blessed($val))
108 45 0 if ($r eq 'ARRAY') { }
0 0 elsif ($r eq 'HASH') { }
127 0 0 if defined wantarray
133 39 15 if @_ % 2
135 15 0 $_[0]->does('DBIx::QuickORM::Role::Type') ? :
15 39 if (not builtin::blessed($_[0]) and eval {
143 39 15 if ($proto)
144 0 39 if (builtin::blessed($proto)) { }
150 0 39 if ($ref) { }
156 35 4 $INC{$file} ? :
159 35 4 if ($is_class) { }
168 0 54 unless exists $params{'value'}
172 40 14 if $params{'affinity'}