Condition Coverage

blib/lib/HTML/FormFu/Element/Checkboxgroup.pm
Criterion Covered Total %
condition 23 30 76.6


and 3 conditions

line !l l&&!r l&&r condition
68 0 131 6 not exists $option->{'attributes'}{'id'} and defined $self->auto_id
87 0 131 6 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'}
100 66 8 63 $submitted and defined $value
74 48 15 $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 0 12 $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
100 6 6 0 !defined($value) || $value eq $HTML::FormFu::Element::Checkboxgroup::EMPTY_STR