Branch Coverage

blib/lib/HTML/Shakan/Widgets/Simple.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
11 0 28 unless my $code = $self->can("widget_$type")
33 4 12 if (defined $value)
60 5 104 defined $value && $value eq $a ? :
84 2 13 defined $value && $value eq $a ? :
102 1 0 unless (ref $values)
103 0 1 defined $values ? :
114 0 3 $checked ? :
128 0 2 unless my $name = $$field{'name'}
129 0 2 unless my $years = $$field{'years'}
158 4 58 if ($field->widget eq 'date')
163 9 3 if (defined $v)
168 3 1 if (@c == 3)