Condition Coverage

lib/HTML/FormWidgets.pm
Criterion Covered Total %
condition 13 53 24.5


and 3 conditions

line !l l&&!r l&&r condition
371 0 0 3 $js_class and $id
0 0 3 $js_class and $id and $config
397 0 0 4 defined $args and ref $args eq 'HASH'
423 0 1 0 $rest[0] && ref $rest[0] eq 'ARRAY'
475 0 0 0 $self->id and $$args{'for'} = $self->id
520 0 1 0 not $url =~ / \A http[s]?: /mx and defined $self->options->{'uri_for'}

or 2 conditions

line l !l condition
311 0 0 $options //= {}
313 0 0 delete $$options{'data'} // []
318 0 0 $$options{'iterator'} //= sub {
359 1 0 $self->options->{'list_key'} || 'items'
360 1 0 $self->options->{'hidden'} || {}
0 1 $$hidden{$key} ||= []
375 13 1 $v || 'null'
380 3 0 $self->options->{'literal_js'} ||= []
388 1 0 $self->options->{'optional_js'} ||= []
467 0 0 $$args{'id'} || '*unknown id*'

or 3 conditions

line l !l&&r !l&&!r condition
314 0 0 0 $$options{'list_key'} //= $$OPTIONS{'list_key'}
315 0 0 0 $$options{'content_type'} //= $$OPTIONS{'content_type'}
317 0 0 0 $$options{'hacc'} //= 'HTML::Accessors'->new('content_type', $type)
339 0 27 0 blessed $self || $self
431 0 0 0 $self->text || $NUL