Branch Coverage

blib/lib/Data/MuForm/Renderer/Base.pm
Criterion Covered Total %
branch 73 100 73.0


line true false branch
35 132 33 if ($self->form)
90 0 6 if (scalar @{$rargs->{'form_errors'};})
113 8 49 if ($layout_type eq 'checkbox') { }
1 48 elsif ($layout_type eq 'checkboxgroup') { }
1 47 elsif ($layout_type eq 'radiogroup') { }
7 40 elsif ($layout_type eq 'element') { }
1 39 elsif ($layout_type eq 'list') { }
1 38 elsif ($layout_type eq 'display') { }
143 9 59 if $wrapper eq 'none'
153 4 3 if ($rargs->{'is_instance'})
184 0 10 unless defined $class
185 2 8 if (exists $href->{$attr_key}{'class'} and ref $href->{$attr_key}{'class'} ne 'ARRAY')
189 0 10 if ($class and ref $class eq 'ARRAY') { }
206 41 82 if exists $skip{$attr}
208 82 0 if (defined $attrs->{$attr})
209 21 61 if (ref $attrs->{$attr} eq 'ARRAY') { }
211 0 21 unless scalar @{$attrs->{$attr};}
234 3 46 if $input_type eq 'checkbox'
244 6 40 if @{$rargs->{'errors'};}
262 1 4 if $rargs->{'multiple'}
263 0 5 if $size
264 0 5 if @{$rargs->{'errors'};}
269 3 2 if (exists $rargs->{'empty_select'})
277 3 11 if (my $label = $option->{'group'}) { }
303 10 10 if $multiple
309 3 17 if (defined $fif and $multiple && exists $fif_lookup{$value} || $fif eq $value)
328 0 3 if @{$rargs->{'errors'};}
346 9 45 if ($self->render_element_errors and $do_errors)
356 5 55 if $rargs->{'no_label'}
357 4 51 if $rargs->{'is_contains'}
358 4 47 if $rargs->{'wrapper'} and $rargs->{'wrapper'} eq 'fieldset'
393 0 60 unless defined $string
404 0 0 if ($rargs->{'layout_type'} eq 'standard') { }
0 0 elsif ($rargs->{'layout_type'} eq 'checkboxgroup') { }
0 0 elsif ($rargs->{'layout_type'} eq 'radiogroup') { }
424 0 1 unless my $rdgo_layout_meth = $self->can("rdgo_layout_$rdgo_layout")
444 0 2 unless $option->{'id'}
446 0 2 if ($rargs->{'fif'} eq $option->{'value'})
476 2 0 $option->{'id'} ? :
518 1 10 if $fif eq $checkbox_value
519 0 11 if @{$rargs->{'errors'};}
532 3 0 if $multiple
541 3 0 unless $option->{'id'}
542 0 3 if (defined $fif and $multiple && exists $fif_lookup{$value} || $fif eq $value)
592 0 3 $option->{'id'} ? :
649 0 38 unless $layout_meth
703 3 1 if $rargs->{'is_compound'}
706 3 1 if $id
734 3 0 defined $value ? :
748 0 1 unless $layout_meth