Branch Coverage

blib/lib/HTML/Widget/Element.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
87 0 273 if $@
105 1 429 unless defined $name or defined $id
134 170 32 unless $$w{'empty_errors'} or defined $errors and scalar @$errors
138 4 28 $_->no_render ? :
139 4 29 if not $$w{'empty_errors'} and $no_render_count == scalar @$errors
149 0 28 if not $$w{'empty_errors'} and $error->no_render
193 223 41 unless $self->attributes->{'id'} or $$w{'explicit_ids'}
198 497 102 if defined $value
218 138 102 unless defined $name
222 16 86 if ($errors)
226 2 100 if ($comment)