Branch Coverage

blib/lib/Class/PObject/Template.pm
Criterion Covered Total %
branch 48 64 75.0


line true false branch
28 0 64 if (@_ % 2)
46 61 177 unless (defined $self->{'columns'}{$colname})
56 46 18 if ($self->UNIVERSAL::can('pobject_init'))
69 0 41 unless (@_ == 2)
79 2 39 if (ref $colvalue eq $typeclass) { }
93 0 169 unless (defined $colname)
103 10 159 unless (defined $colvalue)
108 75 84 if (ref $colvalue)
119 0 84 unless ($typeclass)
151 0 12 unless (defined $rv)
203 9 31 unless defined $terms
204 26 14 unless defined $args
207 0 40 unless (defined wantarray)
213 23 17 unless (wantarray)
223 19 21 if (defined $terms and ref $terms ne 'HASH') { }
227 0 14 if ($props->{'tmap'}{$k} =~ /^(MD5|ENCRYPT)$/)
234 0 21 unless $ids = $driver_obj->load_ids($class, $props, $terms, $args)
236 1 39 unless scalar @$ids
238 16 23 if (wantarray)
241 0 28 unless my $row = $driver_obj->load($class, $props, $id)
249 1 22 unless my $row = $driver_obj->load($class, $props, $ids->[0])
262 0 1 unless (ref $self)
271 0 1 unless (defined $self->id)
276 0 1 unless (defined $rv)
305 0 6 unless (defined $rv)
325 0 5 unless (defined $rv)
362 0 7 if (defined $_[0])
418 361 3 if (defined(my $props = ${$pkg . '::props';}))
439 5 86 if (defined $_[0])
446 80 6 if (defined $driver_obj)
453 1 5 if ($@)
457 0 5 unless (defined $driver_obj)