Branch Coverage

blib/lib/HTML/FormFu/Role/Element/Layout.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
44 127 2051 if (@_)
51 4 2047 if (defined $value and $self->reverse_single)
59 4 0 if (ref $value and 'ARRAY' eq &reftype($value))
63 4 0 if (defined $field_index and defined $label_index and 1 == abs $field_index - $label_index)
71 4 0 if ($ok) { }
102 96 1535 if (@_)
109 7 1528 if (defined $value and $self->reverse_multi)
117 7 0 if (ref $value and 'ARRAY' eq &reftype($value))
121 7 0 if (defined $field_index and defined $label_index and 1 == abs $field_index - $label_index)
129 7 0 if ($ok) { }
180 217 733 exists $args->{'render_data'} ? :
185 217 733 exists $args->{'layout'} ? :
189 702 248 if (defined $render->{'container_tag'})
197 702 248 if (defined $render->{'container_tag'})
207 0 4927 unless defined $layout
211 952 3975 if (ref $layout and 'ARRAY' eq ref $layout) { }
5 3970 elsif (ref $layout and 'HASH' eq ref $layout) { }
3970 0 elsif (my $method = $self->can("_parse_layout_$layout")) { }
220 3972 0 if defined $_
226 2 3 if (my $method = $self->can("_parse_layout_$key")) { }
255 831 89 unless exists $render->{'label'} and defined $render->{'label'} and length $render->{'label'}
257 2 87 if (@_) { }
283 670 30 unless defined $render->{'comment'}
297 700 0 unless defined $render->{'javascript'}
308 0 2 unless exists $render->{'label'} and length $render->{'label'}
320 5 0 if ($opts->{'attributes'})
326 5 0 if ($opts->{'content'})