Condition Coverage

blib/lib/HTML/Widget/Element.pm
Criterion Covered Total %
condition 26 35 74.2


and 3 conditions

line !l l&&!r l&&r condition
134 170 32 0 defined $errors and scalar @$errors
139 1 28 4 not $$w{'empty_errors'} and $no_render_count == scalar @$errors
149 0 28 0 not $$w{'empty_errors'} and $error->no_render

or 2 conditions

line l !l condition
83 266 7 $self->container_class || 'HTML::Widget::Container'

or 3 conditions

line l !l&&r !l&&!r condition
105 429 0 1 defined $name or defined $id
107 37 390 2 $id || $self->name
134 1 0 202 $$w{'empty_errors'} or defined $errors and scalar @$errors
141 0 29 0 $self->attributes->{'id'} || $self->id($w)
188 39 224 1 $self->attributes->{'id'} || $self->id($w)
192 156 108 0 $self->attributes->{'class'} ||= lc $type
193 39 2 223 $self->attributes->{'id'} or $$w{'explicit_ids'}
219 9 93 0 $self->attributes->{'id'} || $self->id($w)