Branch Coverage

blib/lib/HTML/FormHandler/Widget/Wrapper/Bootstrap3.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
27 20 3 if ($self->do_wrapper)
38 16 7 if $self->do_label
46 20 3 if $self->do_wrapper
52 0 23 if ($self->get_tag('input_prepend') or $self->get_tag('input_append') or $self->get_tag('input_append_button')) { }
7 16 elsif (lc $self->widget eq 'checkbox') { }
62 23 0 unless ($self->get_tag('no_errors'))
70 20 3 if $self->do_wrapper
72 20 3 if ($self->do_wrapper)
83 3 13 if $self->type_attr eq 'checkbox'
89 2 15 if $result->has_errors
90 0 17 if $result->has_warnings
91 0 17 if $self->disabled
92 7 10 if $self->html_element eq 'select' or $self->html_element eq 'textarea' or $self->type_attr eq 'text' or $self->type_attr eq 'password'
99 2 18 if $result->has_error_results or $result->has_errors
100 0 20 if $result->has_warnings
106 9 4 if (my $classes = $self->form->get_tag('layout_classes'))
108 9 0 if ($label_class and not &any(sub { $_ =~ /^col\-/; } , @$class))
116 17 6 if (my $classes = $self->form->get_tag('layout_classes'))
117 15 2 if (exists $classes->{'element_wrapper_class'} and not &any(sub { $_ =~ /^col\-/; } , @$class))
121 8 9 if (exists $classes->{'no_label_element_wrapper_class'} and !$self->do_label || $self->type_attr eq 'checkbox' and not &any(sub { $_ =~ /^col\-.*offset/; } , @$class))
134 0 7 $self->get_tag('label_no_filter') ? :
139 3 4 if $self->get_tag('inline')
143 0 4 if $self->get_tag('label_left')
152 0 0 if (my $ip_tag = $self->get_tag('input_prepend'))
156 0 0 if (my $ia_tag = $self->get_tag('input_append'))
160 0 0 if (my $iab_tag = $self->get_tag('input_append_button'))
164 0 0 if (ref $iab_element_attr_tag eq 'HASH')
165 0 0 ref $iab_element_attr_tag->{'class'} eq 'ARRAY' ? :
169 0 0 ref $iab_tag eq 'ARRAY' ? :