Branch Coverage

blib/lib/HTML/FormFu/Constraint/DBIC/Unique.pm
Criterion Covered Total %
branch 19 38 50.0


line true false branch
26 0 16 if not defined $value or $value eq ''
29 0 16 unless (defined $self->$_)
41 16 0 if (defined $stash->{'schema'}) { }
0 0 elsif (defined $stash->{'context'} and defined $self->model) { }
0 0 elsif (defined $stash->{'context'}) { }
51 0 16 unless (defined $schema)
59 0 16 unless (defined $resultset)
65 3 13 if (my $method_name = $self->method_name) { }
71 3 0 if (defined(my $self_stash_key = $self->self_stash_key))
73 3 0 if (defined(my $self_stash = $stash->{$self_stash_key}))
87 2 11 if ($self->others)
88 0 2 ref $self->others ? :
96 4 0 if defined $_
107 0 13 if (my $error = $@)
116 0 13 if ($existing_row and defined(my $self_stash_key = $self->self_stash_key)) { }
6 11 elsif ($existing_row and defined(my $id_field = $self->id_field)) { }
118 0 0 if (defined(my $self_stash = $stash->{$self_stash_key}))
122 0 0 if ($existing_row->$pk eq $self_stash->$pk)
129 4 2 if (defined $value and length $value)