Branch Coverage

blib/lib/HTML/FormFu/Element/Checkbox.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
46 104 0 defined $self->name ? :
51 2 102 if (defined $value and ref $value eq 'ARRAY')
52 2 0 if grep {$_ eq $original;} @$value
55 23 81 if ($submitted and defined $value and defined $original and $value eq $original) { }
8 73 elsif ($submitted and $self->retain_default and !defined($value) || $value eq $HTML::FormFu::Element::Checkbox::EMPTY_STR) { }
34 39 elsif ($submitted) { }
11 28 elsif (defined $default and defined $original and $default eq $original) { }