Branch Coverage

blib/lib/HTML/FormFu/Role/Constraint/Others.pm
Criterion Covered Total %
branch 39 54 72.2


line true false branch
25 11 76 if ($self->other_siblings)
35 11 0 if grep {$_ ne $field;} @{$block->get_fields;}
41 11 25 if $sibling == $field
114 84 17 $args->{'failed'} ? :
115 84 17 $args->{'names'} ? :
119 0 101 if DEBUG_CONSTRAINTS_OTHERS()
120 0 101 if DEBUG_CONSTRAINTS_OTHERS()
121 0 101 if DEBUG_CONSTRAINTS_OTHERS()
122 0 101 if DEBUG_CONSTRAINTS_OTHERS()
124 56 45 if ($pass and not $force)
125 0 56 if DEBUG_CONSTRAINTS_OTHERS()
135 1 44 if ($self->attach_errors_to) { }
11 33 elsif ($self->attach_errors_to_base) { }
2 31 elsif ($self->attach_errors_to_others) { }
138 1 0 unless ($pass)
145 9 2 unless ($pass)
151 0 2 ref $self->others ? :
154 2 0 unless ($pass)
156 0 2 ref $self->others ? :
163 21 10 unless ($pass)
168 0 45 if DEBUG_CONSTRAINTS_OTHERS()
169 0 45 if DEBUG_CONSTRAINTS_OTHERS()
175 30 68 unless $force or grep {$name eq $_;} @has_error
177 0 68 if DEBUG_CONSTRAINTS_OTHERS()
179 0 68 unless my $field = $self->form->get_field({'nested_name', $name})
186 31 37 unless (grep {$name eq $_;} @has_error)
187 0 31 if DEBUG_CONSTRAINTS_OTHERS()