Branch Coverage

blib/lib/HTML/SuperForm/Field.pm
Criterion Covered Total %
branch 0 106 0.0


line true false branch
18 0 0 if (UNIVERSAL::isa($_[0], 'HTML::SuperForm'))
23 0 0 if (ref $_[0] eq 'HASH') { }
48 0 0 if (ref $all_values ne 'ARRAY')
52 0 0 if (defined $$config{'value'} and @$all_values == 0)
56 0 0 if (exists $$config{'label'})
66 0 0 if (exists $$config{'default'})
70 0 0 if (exists $$config{'defaults'})
76 0 0 if (ref $$self{'_default'} eq 'ARRAY' and scalar @{$$self{'_default'};} == 0)
80 0 0 if (UNIVERSAL::isa($form, 'HTML::SuperForm')) { }
92 0 0 if ($$self{'_disabled'})
97 0 0 if (exists $$config{$key})
102 0 0 if (exists $$config{'value_as_label'})
108 0 0 if ($$self{'_multiple'} or scalar @{$$self{'_all_values'};} > 0)
112 0 0 if (UNIVERSAL::isa($form, 'HTML::SuperForm') and $self->sticky and exists $$config{'name'} && $form->exists_param($$config{'name'}) || !$self->fallback) { }
122 0 0 if (not $self->selectable and ref $$self{'_value'} eq 'ARRAY')
130 0 0 if (ref $$self{'_value'} eq 'ARRAY') { }
133 0 0 if (defined $$self{'_value'})
139 0 0 if $all_values_hash{$s}
152 0 0 if (ref $arg eq 'ARRAY') { }
176 0 0 if (ref $_[0] eq 'HASH') { }
196 0 0 if (exists $$self{'_other_info'}{$key}) { }
203 0 0 scalar @return == 1 ? :
0 0 wantarray ? :
211 0 0 if (defined $key)
213 0 0 if (exists $$self{'_labels'}{$key}) { }
0 0 elsif ($self->values_as_labels) { }
222 0 0 if (exists $$self{'_label'}) { }
0 0 elsif ($self->selectable and $self->values_as_labels and scalar @{$$self{'_all_values'};} == 1) { }
234 0 0 if (exists $$self{'_label'} or $self->selectable and $self->values_as_labels and scalar @{$$self{'_all_values'};} == 1)
252 0 0 if (ref $key eq 'ARRAY')
254 0 0 if ($$self{'_selected'}{$k})
267 0 0 if ($self->well_formed)
268 0 0 $self->selected($key) ? :
270 0 0 $self->selected($key) ? :
276 0 0 if ($self->well_formed)
277 0 0 $self->selected($key) ? :
279 0 0 $self->selected($key) ? :
285 0 0 if ($self->well_formed)
286 0 0 $self->multiple ? :
288 0 0 $self->multiple ? :
294 0 0 if ($self->well_formed)
295 0 0 $self->readonly ? :
297 0 0 $self->readonly ? :
303 0 0 if ($self->well_formed)
304 0 0 $self->disabled ? :
306 0 0 $self->disabled ? :
312 0 0 unless $self->name
313 0 0 unless UNIVERSAL::isa($self->form, 'HTML::SuperForm')
315 0 0 if (defined $self->default or not $self->selectable) { }
342 0 0 if (exists $mutators{$key})
347 0 0 if (defined $val)
357 0 0 if (exists $accessors{$key})
366 0 0 if (exists $$self{'_attributes'}{$key}) { }