Branch Coverage

blib/lib/PGObject/Type/Registry.pm
Criterion Covered Total %
branch 32 56 57.1


line true false branch
66 10 3 if (not exists $registry{$name})
98 6 11 unless $args{'registry'}
100 0 17 unless $args{'dbtype'}
102 0 17 unless $args{'apptype'}
103 6 11 unless defined $args{'registry'}
106 2 15 unless exists $registry{$args{'registry'}}
109 3 12 if exists $registry{$args{'registry'}}{$args{'dbtype'}} and $registry{$args{'registry'}}{$args{'dbtype'}} ne $args{'apptype'}
116 0 12 if $parent
118 2 10 unless exists ${"::$parent";}{"${final}::"}
120 0 10 unless $args{'apptype'}->can("from_db")
138 0 3 unless $args{'registry'}
140 0 3 unless $args{'dbtype'}
142 1 2 unless exists $registry{$args{'registry'}}
144 1 1 unless $registry{$args{'registry'}}{$args{'dbtype'}}
166 0 2 unless exists $args{'dbstring'}
192 0 4 unless exists $args{'registry'}
194 0 4 unless $args{'dbtype'}
197 0 4 if ($args{'dbtype'} =~ /^_/)
203 0 2 $args{'_unmapped_undef'} ? :
2 2 unless $registry{$args{'registry'}}{$args{'dbtype'}}
205 0 2 if ($arraytype)
241 0 0 unless exists $args{'registry'}
243 0 0 unless exists $args{'types'}
248 0 0 if (&reftype($types) eq "ARRAY")
250 0 0 unless exists $args{'columns'}
260 0 0 unless (defined $column_deserializers{$_})
288 0 3 unless $name
291 0 3 unless exists $registry{$name}