Condition Coverage

blib/lib/Concierge/Users/Meta.pm
Criterion Covered Total %
condition 38 66 57.5


and 3 conditions

line !l l&&!r l&&r condition
153 4 0 1 exists $override->{'type'} and not exists $override->{'validate_as'}
162 4 0 1 exists $override->{'required'} and $override->{'required'} == 1
4 0 1 exists $override->{'required'} and $override->{'required'} == 1 and not exists $override->{'must_validate'}
240 586 0 178 $def->{'type'} eq "enum" and $def->{'options'}
312 0 0 1 $type and $Concierge::Users::Meta::type_validator_map{$type}
423 0 57 183 $fields and @$fields
436 184 328 133 $def->{'validate_as'} and $def->{'validate_as'} ne $def->{'type'}
443 4 493 148 $def->{'options'} and @{$def->{'options'};}
508 0 0 0 ref $self and $self->{'backend'}
596 0 1 2 $field_def->{'max_length'} and length $value > $field_def->{'max_length'}
661 0 0 0 defined $value and $value =~ /^[01]$/u
678 0 2 21 $value =~ /^\+?[\d\s\-\(\)]+$/u and length $value >= 7
705 0 1 1 $value and $value =~ /^[a-zA-Z0-9]{2,24}$/u
717 0 1 15 $value and $value =~ /^[a-zA-Z00C0-024F'\342\200\231\-.]+(?:\s+[a-zA-Z00C0-024F'\342\200\231\-.]+)*$/u

or 2 conditions

line l !l condition
205 1 9 $field_definition->{'required'} ||= 0
207 10 0 $field_def->{'type'} or "text"
576 7 0 $field_def->{'v_options'} || []

or 3 conditions

line l !l&&r !l&&!r condition
63 2 14 55 not $config->{'include_standard_fields'} or $config->{'include_standard_fields'} =~ /^all$/iu
203 1 9 0 delete $field_def->{'label'} || labelize($field_name)
247 178 0 0 not $def->{'default'} or $def->{'default'} eq ""
332 2 0 0 $field_def->{'label'} || labelize($field_def->{'field_name'} || $field)
523 0 0 0 $params{'output_path'} || "$storage_dir/users-config.yaml"
1010 0 5 161 not defined $value or $value eq $field_def->{'null_value'}