Branch Coverage

blib/lib/HTML/Shakan/Widgets/Simple.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
11 0 34 unless my $code = $self->can("widget_$type")
33 6 13 if (defined $value)
60 5 104 defined $value && $value eq $a ? :
77 1 5 $field->has_item_label_class && $field->item_label_class ne '' ? :
90 2 16 defined $value && $value eq $a ? :
107 2 0 unless (ref $values)
108 0 2 defined $values ? :
110 1 1 $field->has_item_label_class && $field->item_label_class ne '' ? :
125 0 6 $checked ? :
138 0 2 unless my $name = $field->{'name'}
139 0 2 unless my $years = $field->{'years'}
168 4 64 if ($field->widget eq 'date')
173 9 3 if (defined $v)
178 3 1 if (@c == 3)