Branch Coverage

blib/lib/Form/Diva.pm
Criterion Covered Total %
branch 90 92 97.8


line true false branch
32 1 153 if ($hash{$field->{'name'}}) { }
47 1727 62 if defined $_
52 153 191 if (exists $options{'content'})
56 34 310 if (defined $options{'prefix'})
60 142 202 if (defined $options{'suffix'})
72 1 31 unless ($self->{'input_class'})
73 1 30 unless ($self->{'label_class'})
74 1 29 length $self->{'id_base'} ? :
91 2 2 $args->{'input_class'} ? :
93 0 4 $args->{'label_class'} ? :
95 2 2 $args->{'form_name'} ? :
97 3 1 if ($args->{'neworder'}) { }
102 1 3 if ($args->{'newhidden'}) { }
126 216 233 if ($DivaShortMap{$tag})
131 23 107 unless ($formfield->{'type'})
132 1 129 unless ($formfield->{'name'})
133 101 28 unless ($formfield->{'id'})
159 19 125 if ($fclass) { }
175 4 99 if (lc $in{'type'} eq 'textarea') { }
182 0 99 if ($in{'type'} eq "hidden")
184 28 75 if (keys %{$data;}) { }
189 22 53 if ($in{'default'}) { }
192 34 69 if ($in{'placeholder'}) { }
211 1 104 if exists $field->{'label'} and not defined $field->{'label'}
216 1 103 $field->{'label_class'} ? :
218 39 65 exists $field->{'label'} ? :
236 2 71 if ($B{'textarea'}) { }
316 19 19 length $field->{'default'} ? :
317 9 10 if (keys %{$data;}) { }
324 5 33 $replace_fields ? :
325 13 25 if ($field->{'type'} eq 'select') { }
331 4 30 if ($datavalue eq $value) { }
1 29 elsif ($default eq $value) { }
363 5 103 if ($datavalue eq $value) { }
9 94 elsif ($default eq $value) { }
391 16 36 if (ref $data eq 'HASH') { }
5 31 elsif (eval { do { $data->isa('DBIx::Class::Row') } }) { }
406 31 66 if ($field->{'type'} eq 'radio' or $field->{'type'} eq 'checkbox' or $field->{'type'} eq 'select') { }
435 6 14 if ($data->{$iname})
465 3 5 if ($_ eq "skipempty")
466 5 3 if ($_ eq "moredata")
471 12 30 if ($skipempty)
472 6 6 unless ($$data{$field->{'name'}})
481 14 22 exists $field->{'label'} ? :
484 13 23 if ($moredata)
490 3 10 $field->{'class'} ? :