Branch Coverage

blib/lib/HTML/FormFu/Constraint/Equal.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
24 0 35 unless $self->_process_when($params)
27 0 35 unless defined $others
31 0 35 if DEBUG_CONSTRAINTS()
33 31 4 ref $others ? :
41 0 66 if DEBUG_CONSTRAINTS()
45 28 38 if ($self->not) { }
11 27 elsif (not $ok) { }
46 12 16 if ($value eq $EMPTY_STR) { }
6 10 elsif ($ok) { }
63 2 13 if ($self->not and $value eq $EMPTY_STR and &all(sub { $_ eq $EMPTY_STR unless not defined $_; } , values %values))
65 9 0 unless not defined $_
70 14 19 @failed ? :
83 0 0 unless defined $v1 or defined $v2
85 2 69 unless defined $v1 and defined $v2
87 59 10 if (not ref $v1 || ref $v2) { }
8 2 elsif (ref $v1 eq 'ARRAY' and ref $v2 eq 'ARRAY') { }
88 36 23 if $v1 eq $v2
101 0 8 if scalar @a1 != scalar @a2
104 0 15 if $a1[$i] ne $a2[$i]