Branch Coverage

blib/lib/HTML/FormStructure/Validation.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
15 7 0 if ($query->more eq '1') { }
21 0 7 if length $self->r->param($query->name) < $query->more
24 0 1 if $self->have('error')
27 0 7 if length $self->r->param($query->name) > $query->less
30 0 1 if $self->have('error')
33 0 8 unless defined $self->r->param($query->name)
34 2 6 if (ref $meth eq 'CODE')
37 0 2 unless &$meth($self->r->param($query->name), $self->r)
44 6 0 if ($pkg->can($meth)) { }
0 0 elsif ($self->validator->can($meth)) { }
45 0 6 unless $pkg->$meth($self->r->param($query->name), $self->r)
50 0 0 unless $self->validator->$meth($self->r->param($query->name), $self->r)
60 0 1 if $self->have('error')