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 |
209 | 128 | 34 | 75 | $definition and $definition->{'type'} eq 'required' |
34 | 6 | 122 | 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 | |
213 | 12 | 4 | 181 | defined $value and length $value |
242 | 1 | 2 | 5 | not $@ and $module->can('check') |
272 | 24 | 2 | 3 | ref $file and 'SCALAR' eq ref $file |
1 | 3 | 22 | defined $file and -e $file | |
316 | 35 | 30 | 48 | exists $data->{$field}{'type'} and $data->{$field}{'type'} eq 'required' |
356 | 1 | 13 | 6 | defined $min and length $value < $min |
359 | 16 | 3 | 1 | defined $max and length $value > $max |
406 | 1 | 2 | 6 | _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} |
207 | 122 | 5 | 1 | $definition || $self->_required->{$field} || $self->_optional->{$field} |
209 | 75 | 122 | 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} | |
262 | 1 | 1 | 1 | $self->_required->{$field} || $self->_optional->{$field} |