Branch Coverage

blib/lib/HTML/FormFu/Element.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
64 1256 58767 if (@_ > 1)
66 1 1255 if ($name =~ /[\.\[\]]/)
136 241 13 unless $defaults and %$defaults
160 3 34 if ($type =~ s/^-//) { }
1 33 elsif ($type =~ s/^\+//) { }
169 17 20 if ($self->_match_default_args_type($type, $check_parents))
170 1 16 if ($not_in) { }
180 15 18 if ($match)
192 4 33 if ($check_parents) { }
195 4 1 unless $parent->isa('HTML::FormFu::Element')
206 3 31 if ('Block' eq $type and $target->isa('HTML::FormFu::Element::Block'))
213 2 29 if ('Field' eq $type and $target->does('HTML::FormFu::Role::Element::Field'))
220 5 24 if ('Input' eq $type and $target->does('HTML::FormFu::Role::Element::Input'))
227 7 17 if ($type eq $target->type)
239 0 193 if $self->{'tt_args'}
263 1628 0 $args ? :