Condition Coverage

blib/lib/JSON/Schema/Fit.pm
Criterion Covered Total %
condition 32 39 82.0


and 3 conditions

line !l l&&!r l&&r condition
83 75 5 13 exists $schema->{'default'} and !defined($struc) && $self->fill_defaults || $self->replace_invalid_values && !$self->_is_valid($struc, $schema)
161 12 2 3 exists $schema->{'maximum'} and $result > $schema->{'maximum'}
162 14 2 1 exists $schema->{'minimum'} and $result < $schema->{'minimum'}
201 2 3 10 $self->hash_keys and exists $schema->{'additionalProperties'}
3 0 10 $self->hash_keys and exists $schema->{'additionalProperties'} and not $schema->{'additionalProperties'}
210 15 46 10 $keys_re and not $key =~ /$keys_re/x
213 58 3 0 !$subschema && &first(sub { $key =~ /$_/x; } , keys %$p_properties)

or 2 conditions

line l !l condition
198 15 0 $schema->{'properties'} || {}
199 0 15 $schema->{'patternProperties'} || {}
235 0 64 $path //= '$'

or 3 conditions

line l !l&&r !l&&!r condition
73 122 49 25 $self->{$attr} //= $valid_option{$attr}
81 3 0 93 not ref $schema or &reftype($schema) ne 'HASH'
83 2 12 4 !defined($struc) && $self->fill_defaults || $self->replace_invalid_values && !$self->_is_valid($struc, $schema)
156 19 0 10 $schema->{'multipleOf'} || $schema->{'divisibleBy'}