Condition Coverage

blib/lib/HTML/Widget/Element/Checkbox.pm
Criterion Covered Total %
condition 17 19 89.4


and 3 conditions

line !l l&&!r l&&r condition
73 13 4 1 defined $value && $value eq $self->value
76 5 13 0 not defined $value and $self->retain_default || !$$args{'submitted'}
2 5 6 not defined $value and $self->retain_default || !$$args{'submitted'} and $self->checked

or 2 conditions

line l !l condition
66 8 8 $$w{'_stash'} ||= {}
67 8 8 $$w{'_stash'}{'checkbox'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
70 8 8 0 $self->attributes->{'id'} ||= $id
76 4 7 2 $self->retain_default || !$$args{'submitted'}