Condition Coverage

blib/lib/Data/Validate/WithYAML.pm
Criterion Covered Total %
condition 64 64 100.0


and 3 conditions

line !l l&&!r l&&r condition
74 1 31 3 @_ and @_ % 2 == 0
128 1 39 1 @_ and @_ % 2 == 0
209 125 34 75 $definition and $definition->{'type'} eq 'required'
34 6 119 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 3 179 defined $value and length $value
236 1 2 1 not $@ and $module->can('check')
262 24 2 2 ref $file and 'SCALAR' eq ref $file
1 3 22 defined $file and -e $file
306 35 30 47 exists $data->{$field}{'type'} and $data->{$field}{'type'} eq 'required'
346 1 13 6 defined $min and length $value < $min
349 16 3 1 defined $max and length $value > $max
396 1 2 6 _datatype($value, 'int') && $value > 0

or 2 conditions

line l !l condition
106 21 1 $fields{$name}{'case'} || {}
112 98 5 $fields{$name}{'type'} ||= 'optional'

or 3 conditions

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 119 5 1 $definition || $self->_required->{$field} || $self->_optional->{$field}
209 75 119 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}
252 1 1 1 $self->_required->{$field} || $self->_optional->{$field}