blib/lib/Data/Validate/WithYAML.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 64 | 64 | 100.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
74 | 1 | 31 | 3 | @_ and @_ % 2 == 0 |
128 | 1 | 39 | 1 | @_ and @_ % 2 == 0 |
210 | 147 | 34 | 75 | $definition and $definition->{'type'} eq 'required' |
34 | 6 | 141 | not $definition and exists $self->_required->{$field} | |
17 | 1 | 21 | defined $value && length $value | |
1 | 21 | 18 | $definition && $definition->{'type'} eq 'optional' || !$definition && exists $self->_optional->{$field} and not defined $value && length $value | |
214 | 12 | 8 | 196 | defined $value and length $value |
243 | 1 | 2 | 5 | not $@ and $module->can('check') |
273 | 24 | 2 | 5 | ref $file and 'SCALAR' eq ref $file |
1 | 3 | 22 | defined $file and -e $file | |
317 | 35 | 30 | 52 | exists $data->{$field}{'type'} and $data->{$field}{'type'} eq 'required' |
377 | 1 | 18 | 7 | defined $min and length $value < $min |
380 | 22 | 3 | 1 | defined $max and length $value > $max |
427 | 1 | 2 | 5 | _datatype($value, 'int') && $value > 0 |
line | l | !l | condition |
---|---|---|---|
106 | 21 | 1 | $fields{$name}{'case'} || {} |
112 | 98 | 5 | $fields{$name}{'type'} ||= 'optional' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
99 | 22 | 1 | 3 | exists $hash{$depends_on} || $fields{$name}{'depends_lax'} |
168 | 17 | 12 | 1 | $self->_required->{$field} || $self->_optional->{$field} |
208 | 141 | 5 | 1 | $definition || $self->_required->{$field} || $self->_optional->{$field} |
210 | 75 | 141 | 40 | $definition and $definition->{'type'} eq 'required' or not $definition and exists $self->_required->{$field} |
34 | 5 | 1 | $definition && $definition->{'type'} eq 'optional' || !$definition && exists $self->_optional->{$field} | |
263 | 1 | 1 | 1 | $self->_required->{$field} || $self->_optional->{$field} |