Branch Coverage

blib/lib/HTML/FormHandler/Model/CDBI.pm
Criterion Covered Total %
branch 0 88 0.0


line true false branch
17 0 0 unless my $item_id = $self->item_id
32 0 0 unless $class and $class->isa('Class::DBI')
37 0 0 if (my $meta = $class->meta_info('has_a')->{$column}) { }
0 0 elsif ($meta = $class->meta_info('has_many')->{$column}) { }
0 0 elsif ($column =~ /_time$/) { }
40 0 0 $f_class->isa('DateTime') ? :
51 0 0 if (@{$meta->args->{'mapping'};})
64 0 0 wantarray ? :
71 0 0 unless my $class = $self->item_class
72 0 0 unless $class->isa('Class::DBI')
75 0 0 unless $f_class
79 0 0 unless $f_class->find_column($label_column)
81 0 0 $self->can('active_column') ? :
84 0 0 unless $f_class->find_column($active_col)
87 0 0 defined $sort_col && $f_class->find_column($sort_col) ? :
96 0 0 if $f_class eq ref $self->item
100 0 0 if ($active_col)
103 0 0 if $self->item and defined $field->init_value
113 0 0 $active_col && !$_->$active_col ? :
126 0 0 if $field->writeonly
130 0 0 unless $item and $item->can($column) || ref $item eq 'HASH' && exists $item->{$column}
132 0 0 if (ref $item eq 'HASH') { }
0 0 elsif (not $item->isa('Class::DBI')) { }
133 0 0 if ref $item eq 'HASH'
140 0 0 ref $_ && $_->isa('Class::DBI') ? :
143 0 0 @values > 1 ? :
152 0 0 unless $self->validate_unique
161 0 0 unless @unique
168 0 0 if $field->errors
170 0 0 unless defined $value
174 0 0 if $self->items_same($item, $match)
198 0 0 unless exists $fields{$col}
202 0 0 if ($item) { }
204 0 0 unless $value or $cur
205 0 0 if $value and $cur and $value eq $cur
213 0 0 if ($item) { }
226 0 0 unless $class->meta_info('has_many')
227 0 0 unless my $meta = $class->meta_info('has_many')->{$field_name}
234 0 0 ref $value ? :
0 0 if defined $value
241 0 0 unless $related_key
246 0 0 unless delete $keep{$_->$related_key}
268 0 0 unless defined $item1 or defined $item2
270 0 0 unless defined $item1 and defined $item2