Condition Coverage

blib/lib/HTML/FormFu/Element/Checkboxgroup.pm
Criterion Covered Total %
condition 21 30 70.0


and 3 conditions

line !l l&&!r l&&r condition
73 0 131 6 not exists $option->{'attributes'}{'id'} and defined $self->auto_id
92 0 137 0 exists $option->{'label'} and exists $option->{'attributes'}{'id'}
131 0 6 exists $option->{'label'} and exists $option->{'attributes'}{'id'} and not exists $option->{'label_attributes'}{'for'}
105 66 8 63 $submitted and defined $value
74 63 0 $submitted and defined $value and ref $value eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$value) : $value eq $option->{'value'}
66 44 12 $submitted and $self->retain_default
110 12 0 $submitted and $self->retain_default and !defined($value) || $value eq $HTML::FormFu::Element::Checkboxgroup::EMPTY_STR
0 8 4 $submitted and $self->retain_default and !defined($value) || $value eq $HTML::FormFu::Element::Checkboxgroup::EMPTY_STR and $self->value eq $option->{'value'}
43 23 0 defined $default and ref $default eq 'ARRAY' ? &any(sub { $_ eq $option->{'value'}; } , @$default) : $default eq $option->{'value'}

or 3 conditions

line l !l&&r !l&&!r condition
105 6 6 0 !defined($value) || $value eq $HTML::FormFu::Element::Checkboxgroup::EMPTY_STR