Branch Coverage

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


line true false branch
54 2 51 if (my $cv = $self->custom_validation)
58 2 60 if (my $cv = $field->custom_validation)
63 33 20 if ($fvl->is_valid) { }
93 1 34 if (my $inf = $field->inflator)
95 1 0 if (defined $v)
112 3 4 unless defined $r->param($_)
119 4 1 $submitted_field > 0 ? :
124 2 0 if $self->submitted
153 0 1 unless $field
221 0 127 if scalar @_ == 0
224 126 1 if (scalar @_ == 1)
225 50 76 wantarray ? :
228 0 1 unless scalar @_ % 2 == 0
232 1 0 ref $value eq 'ARRAY' ? :
242 62 0 if ($self->widgets->can('field_filter'))
246 6 56 if ($field->can('field_filter'))
254 41 21 if (@val != 0)
255 41 0 if (my $filters = $$field{'filters'})
258 38 3 @val == 1 ? :