Branch Coverage

blib/lib/HTML/Widget/Result.pm
Criterion Covered Total %
branch 55 68 80.8


line true false branch
78 83 0 unless $element->passive
120 2 127 if $name and not $$self{'_errors'}{$name}
126 4 96 if $type and $$error{'type'} ne $type
157 6 2 if ($self->implicit_subcontainer)
200 0 1 unless @elements
223 0 1 unless @elements
226 0 1 unless $ble->isa('HTML::Widget::Element::NullContainer')
242 0 199 if $$javascript{$key}
270 4 380 if $element_container_class
272 78 306 if $self->implicit_subcontainer and $toplevel
276 379 5 if defined $ename and $params
277 8 5 if defined $name and defined $ename and $ename ne $name
278 371 5 if defined $ename and $params
279 371 5 if defined $ename
282 0 376 if $ename and $$javascript{$ename}
284 5 371 if defined $name
334 240 9 unless $name
335 5 4 if grep {/$name/;} @names
378 0 135 if @_ > 1
380 135 0 if (@_ == 1)
385 7 128 unless ($valid and exists $$self{'_params'}{$param})
386 0 7 wantarray ? :
389 17 111 if (ref $$self{'_params'}{$param} eq 'ARRAY') { }
391 17 0 wantarray ? :
396 24 87 wantarray ? :
422 1 24 if (@values > 1) { }
477 17 216 if ($self->strict) { }
480 34 0 if $names
489 99 166 if $name eq $error
494 18 215 unless $name
495 182 33 if grep {/\Q$name\E/;} @valid
555 0 4 unless defined $$args{'name'}
557 1 3 unless exists $$args{'type'}
558 0 4 unless exists $$args{'message'}