Branch Coverage

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


line true false branch
46 128 2065 if (@_)
53 4 2061 if (defined $value and $self->reverse_single)
62 4 0 if (ref $value and 'ARRAY' eq &reftype($value))
66 4 0 if (defined $field_index and defined $label_index and 1 == abs $field_index - $label_index)
74 4 0 if ($ok) { }
103 96 1542 if (@_)
110 7 1535 if (defined $value and $self->reverse_multi)
119 7 0 if (ref $value and 'ARRAY' eq &reftype($value))
123 7 0 if (defined $field_index and defined $label_index and 1 == abs $field_index - $label_index)
131 7 0 if ($ok) { }
183 217 740 exists $args->{'render_data'} ? :
188 217 740 exists $args->{'layout'} ? :
192 709 248 if (defined $render->{'container_tag'})
200 709 248 if (defined $render->{'container_tag'})
210 0 4969 unless defined $layout
214 959 4010 if (ref $layout and 'ARRAY' eq ref $layout) { }
5 4005 elsif (ref $layout and 'HASH' eq ref $layout) { }
4005 0 elsif (my $method = $self->can("_parse_layout_$layout")) { }
221 4007 0 if defined $_
226 2 3 if (my $method = $self->can("_parse_layout_$key")) { }
256 836 91 unless exists $render->{'label'} and defined $render->{'label'} and length $render->{'label'}
258 2 89 if (@_) { }
282 677 30 unless defined $render->{'comment'}
296 707 0 unless defined $render->{'javascript'}
307 0 2 unless exists $render->{'label'} and length $render->{'label'}
319 5 0 if ($opts->{'attributes'})
325 5 0 if ($opts->{'content'})