Condition Coverage

blib/lib/Yancy/Backend/Memory.pm
Criterion Covered Total %
condition 90 110 81.8


and 3 conditions

line !l l&&!r l&&r condition
64 63 0 58 not $params->{$id_field} and $self->schema->{$schema_name}{'properties'}{$id_field}{'type'} eq "integer"
0 6 57 $params->{$id_field} and $id_field ne "id"
6 57 0 $params->{$id_field} and $id_field ne "id" and exists $self->schema->{$schema_name}{'properties'}{'id'}
94 315 11 1 @ids > 1 and !ref($id) || keys %$id < @ids
147 3 0 0 keys %$join_where and not $res->{'total'}
162 3 1 1 keys %$join_where and not $res->{'total'}
239 54 3 1 @id_fields > 1 and !ref($id) || keys %$id < @id_fields
276 90 3 1 @id_fields > 1 and !ref($id) || keys %$id < @id_fields
296 109 590 70 is_type($type, "string") and is_format($format, "date-time")
299 30 2 24 $data->{$key} && !($data->{$key} =~ /^false$/iu)
324 2512 225 413 $p->{'format'} and not $db_formats{$p->{'format'}}

or 2 conditions

line l !l condition
34 79 6 $schema //= \%Local::Test::SCHEMA
54 149 174 $props->{$_}{'default'} // undef
58 71 45 $self->schema->{$schema_name}{'x-id-field'} || 'id'
66 40 18 &max(@existing_ids) // 0
74 29 17 &max(@existing_ids) // 0
78 114 2 $DATA{$schema_name} //= {}
80 1 4 $$store{$$params{$id_fields[$i]}} //= {}
90 2 326 $schema->{'x-view'} || {}
92 166 162 $self->schema->{$schema_name}{'x-id-field'} || 'id'
99 292 42 $item->{$id} // (return undef)
115 21 0 $schema->{'x-id-field'} || 'id'
119 17 4 $item->{$join} || (next)
141 6 21 $props{$_}{'x-foreign-key'} // ""
144 3 0 $join_schema->{'x-id-field'} // "id"
151 10 10 $join_props->{$_}{'x-foreign-key'} // ""
158 5 0 $schema->{'x-id-field'} // "id"
177 3 628 $schema->{'x-view'} || {}
193 212 124 $params ||= {}
195 181 155 $self->schema->{$schema_name}{'x-id-field'} || 'id'
198 1 335 $schema->{'x-view'} || {}
218 41 295 $opt->{'order_by'} // \@id_fields
220 78 258 $opt->{'offset'} // 0
237 29 29 $self->schema->{$schema_name}{'x-id-field'} || 'id'
274 50 44 $self->schema->{$schema_name}{'x-id-field'} || 'id'
281 2 0 $store->{$id_part} // (return 0)

or 3 conditions

line l !l&&r !l&&!r condition
31 0 0 0 $ENV{'MOJO_HOME'} || ()
90 2 326 0 +($schema->{'x-view'} || {})->{'schema'} // $schema_name
94 0 1 11 !ref($id) || keys %$id < @ids
144 0 3 0 $join_key_field //= $join_schema->{'x-id-field'} // "id"
177 3 628 0 +($schema->{'x-view'} || {})->{'schema'} // $schema_name
198 1 335 0 +($schema->{'x-view'} || {})->{'schema'} // $schema_name
200 336 0 0 $schema->{'properties'} || $self->schema->{$real_coll}{'properties'}
239 1 1 2 !ref($id) || keys %$id < @id_fields
276 1 1 2 !ref($id) || keys %$id < @id_fields