Branch Coverage

blib/lib/Validation/Class/Directive/Filters.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
69 1 1 $_[0] =~ /^(?:[^\d\-]+)?([\-])/ ? :
71 1 1 $n ? :
77 1 1 $_[0] =~ /^(?:[^\d\-]+)?([\-])/ ? :
79 1 1 $n ? :
91 2 15 $_[0] =~ /^(?:[^\d\-]+)?([\-])/ ? :
93 2 15 $n ? :
138 329 231 if ($proto->validated == 2)
163 167 842 if (not defined $field->{'filters'}) { }
190 286 1427 unless $state and $proto->filtering eq 'pre' || $proto->filtering eq 'post' and defined $field->{'filters'} and defined $field->{'filtering'} and defined $param
195 0 1427 unless defined $field->{'filtering'}
197 1111 316 if ($field->{'filtering'} eq $state and $state ne "off")
200 1090 21 isa_arrayref($field->{'filters'}) ? :
204 7 1104 isa_arrayref($param) ? :
206 23 1095 unless $value
210 562 10 unless isa_coderef($filter)
213 0 572 unless $filter