Branch Coverage

lib/HTML/FormWidgets.pm
Criterion Covered Total %
branch 26 66 39.3


line true false branch
320 0 0 if $_
321 0 0 unless ref $$list{$key} eq 'ARRAY'
326 0 0 if $built
346 0 27 '+' eq substr($class, 0, 1) ? :
371 0 3 unless $js_class and $id and $config
373 3 0 if (ref $config eq 'HASH') { }
375 11 3 if $list
14 0 if ($k)
397 0 4 unless defined $args and ref $args eq 'HASH'
406 0 0 $_[0]->options->{'content_type'} =~ m[ / (.*) xml \z ]mx ? :
412 0 34 if (defined($l10n = $$opts{'l10n'}))
418 0 34 unless $text
421 33 1 if 0 > index($text, $LSB)
423 0 1 $rest[0] && ref $rest[0] eq 'ARRAY' ? :
431 0 28 unless $self->type
433 0 28 unless my $field = $self->$_render_field
435 0 28 if $self->stepno
436 0 28 if $self->prompt
437 0 28 if $self->sep
438 0 28 if $self->tip
439 0 28 if $self->check_field
443 17 11 if $self->container
444 0 28 if $self->clear eq 'left'
459 0 17 if $self->container_id
465 0 0 if $self->text
475 0 0 if $self->id and $$args{'for'} = $self->id
477 0 0 if $self->pwidth
485 0 0 if ($self->sep eq 'break')
495 0 0 if ref $stepno eq 'HASH'
505 0 0 unless $tip =~ / $TTS /mx
510 0 0 unless $self->tiptype eq 'dagger'
518 2 1 unless defined $url
520 0 1 if not $url =~ / \A http[s]?: /mx and defined $self->options->{'uri_for'}