Branch Coverage

blib/lib/Input/Validator.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
25 14 0 unless defined $$self{'trim'}
32 0 0 @_ > 1 ? :
33 0 0 @_ > 1 ? :
34 0 0 @_ > 1 ? :
40 4 15 if @_ == 1 and ref $_[0] ne 'ARRAY' and $$self{'fields'}{$_[0]}
44 4 11 @_ == 1 && ref $_[0] eq 'ARRAY' ? :
58 11 4 if @names == 1
78 1 2 if (my($exists) = grep({$_->name eq $name;} @{$$self{'groups'};}))
79 0 1 if $fields
102 14 17 if $errors and scalar keys %$errors
154 7 2 if not $_->is_matched
157 30 2 unless @conditions
164 14 16 $self->has_errors ? :
172 3 40 unless (defined $$self{'fields'}{$param})
175 1 2 if ($$self{'explicit'})
199 45 14 if $field->is_valid
201 14 0 if $field->error
209 3 5 if $group->is_valid
211 3 2 if $group->error
221 7 6 if defined $field->value and not $field->error
234 2 0 if defined $field->value