Branch Coverage

blib/lib/HTML/Shakan.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
54 2 58 if (my $cv = $self->custom_validation)
58 2 66 if (my $cv = $field->custom_validation)
63 40 20 if ($fvl->is_valid) { }
93 1 40 if (my $inf = $field->inflator)
95 1 0 if (defined $v)
114 2 4 unless defined $r->param($_)
119 3 1 $submitted_field > 0 ? :
124 2 0 if $self->submitted
153 0 1 unless $field
221 0 137 if scalar @_ == 0
224 136 1 if (scalar @_ == 1)
225 54 82 wantarray ? :
228 0 1 unless scalar @_ % 2 == 0
232 1 0 ref $value eq 'ARRAY' ? :
242 68 0 if ($self->widgets->can('field_filter'))
246 5 63 if ($field->can('field_filter'))
254 45 23 if (@val != 0)
255 45 0 if (my $filters = $field->{'filters'})
258 42 3 @val == 1 ? :