Branch Coverage

lib/HTML/FormWidgets.pm
Criterion Covered Total %
branch 27 68 39.7


line true false branch
321 0 0 if $_
322 0 0 unless ref $list->{$key} eq 'ARRAY'
327 0 0 if $built
347 0 27 '+' eq substr($class, 0, 1) ? :
372 0 3 unless $js_class and $id and $config
374 3 0 if (ref $config eq 'HASH') { }
376 11 3 if $list
14 0 if ($k)
392 2 0 unless &any(sub {
401 0 4 unless defined $args and ref $args eq 'HASH'
410 0 0 $_[0]->options->{'content_type'} =~ m[ / (.*) xml \z ]mx ? :
416 0 34 if (defined($l10n = $opts->{'l10n'}))
422 0 34 unless $text
425 33 1 if 0 > index($text, $LSB)
427 0 1 $rest[0] && ref $rest[0] eq 'ARRAY' ? :
435 0 28 unless $self->type
437 0 28 unless my $field = $self->$_render_field
439 0 28 if $self->stepno
440 0 28 if $self->prompt
441 0 28 if $self->sep
442 0 28 if $self->tip
443 0 28 if $self->check_field
447 17 11 if $self->container
448 0 28 if $self->clear eq 'left'
463 0 17 if $self->container_id
469 0 0 if $self->text
479 0 0 if $self->id and $args->{'for'} = $self->id
481 0 0 if $self->pwidth
489 0 0 if ($self->sep eq 'break')
499 0 0 if ref $stepno eq 'HASH'
509 0 0 unless $tip =~ / $TTS /mx
514 0 0 unless $self->tiptype eq 'dagger'
522 2 1 unless defined $args[0]
525 0 1 if not $args[0] =~ / \A http[s]?: /mx and defined $self->options->{'uri_for'}