Branch Coverage

blib/lib/Input/Validator/Field.pm
Criterion Covered Total %
branch 67 76 88.1


line true false branch
19 52 0 unless defined $$self{'trim'}
27 82 0 unless @_
37 99 11 unless @_
47 87 6 unless @_
57 54 4 unless @_
67 147 0 unless @_
77 105 193 unless @_
97 0 4 unless @_
99 0 4 @_ == 1 ? :
116 29 5 unless defined $message
124 485 17 unless @_
134 456 166 unless @_
138 19 147 unless defined $value
140 37 110 if ($self->multiple) { }
141 33 4 ref $value eq 'ARRAY' ? :
144 2 108 ref $value eq 'ARRAY' ? :
147 0 147 unless $self->trim
149 37 110 $self->multiple ? :
162 12 87 if $self->required and $self->is_empty
165 16 71 if $self->is_empty
167 20 51 $self->multiple ? :
169 7 64 if $self->inflate
171 20 51 if (my $multiple = $self->multiple)
174 2 18 if @values < $min
176 7 11 defined $max ? :
2 16 if defined $max ? @values > $max : $min != 1 && @values != $min
181 4 39 if ($c->is_multiple) { }
184 2 2 unless ($ok)
193 16 26 unless ($ok)
201 4 45 if $self->deflate
203 13 36 $self->multiple ? :
230 93 25 defined $self->value ? :
236 24 92 unless $self->is_defined
238 24 68 if (ref $self->value eq 'ARRAY')
242 3 65 $self->value eq '' ? :
250 0 21 if $method =~ /^[A-Z]+?$/
251 0 21 if $method =~ /^_/
252 0 21 if $method =~ /(?:\:*?)DESTROY$/