Branch Coverage

blib/lib/Class/PObject/Template.pm
Criterion Covered Total %
branch 53 80 66.2


line true false branch
23 0 99 if @_ % 2
36 203 175 unless (defined $$self{'columns'}{$colname})
52 81 0 if defined $_[1]
56 5 0 if defined $_[1]
63 0 37 unless ref $self
64 0 37 unless @_ == 2
69 2 35 if (ref $colvalue eq $typeclass) { }
83 0 164 unless ref $self
84 0 164 unless defined $colname
91 10 154 unless defined $colvalue
94 72 82 if ref $colvalue
101 0 82 unless $typeclass
113 0 11 unless ref $self
130 0 11 unless (defined $rv)
147 0 2 if ref $class
177 0 39 if ref $class
188 9 30 unless defined $terms
189 25 14 unless defined $args
192 0 39 unless defined wantarray
194 22 17 unless (wantarray)
205 18 21 if (defined $terms and ref $terms ne 'HASH') { }
209 0 14 if ($$props{'tmap'}{$k} =~ /^(MD5|ENCRYPT)$/)
218 0 21 unless $ids = $driver_obj->load_ids($class, $props, $terms, $args)
220 1 38 unless scalar @$ids
222 16 22 if (wantarray)
225 0 28 unless my $row = $driver_obj->load($class, $props, $id)
233 1 21 unless my $row = $driver_obj->load($class, $props, $$ids[0])
243 0 1 unless ref $self
252 0 1 unless defined $self->id
255 0 1 unless (defined $rv)
272 0 5 if ref $class
285 0 5 unless (defined $rv)
297 0 5 if ref $class
304 0 5 unless (defined $rv)
318 0 15 if ref $class
339 0 7 if (defined $_[0])
416 3 80 if (defined $_[0])
423 77 3 if defined $driver_obj
430 0 3 if ($@)
434 0 3 unless (defined $driver_obj)