Condition Coverage

blib/lib/Test/PONAPI/Repository/MockDB.pm
Criterion Covered Total %
condition 32 59 54.2


and 3 conditions

line !l l&&!r l&&r condition
287 1 0 0 $one_to_one and do { local $@; eval { do { $e->sql_error } } }
387 8 0 0 $return == 102 and $update_rel_return != 102
651 92 4 2 exists $fields->{$rel_type} and not @{$fields->{$rel_type};}
697 0 0 10 $rel_type and my $rels = $self->_fetchall_relationships(%args)
721 119 13 25 keys %type_fields > 0 and not exists $type_fields{$name}
776 0 0 3 $sqlite_constraint_failed and $err_id
0 0 3 $sqlite_constraint_failed and $err_id and $err_id == $sqlite_constraint_failed

or 2 conditions

line l !l condition
107 4 0 $args{'sort'} || []
143 6 0 delete $args{'sort'} || []
191 2 0 $@ || 'Unknown error'
208 5 0 $data->{'attributes'} || {}
209 3 2 delete $data->{'relationships'} || {}
283 1 0 $@ || 'Unknown error'
317 2 0 $@ || 'Unknown error'
340 1 0 $@ || 'Unknown error'
355 14 10 $_ || {}
450 0 0 $@ || 'Unknown error'
489 0 0 $@ || 'Unknown error'
584 6 1 $rows_fetched ||= -1
622 5 2 $page->{'offset'} ||= 0
768 3 0 $@ || 'Unknown error'
772 3 0 $DBI::errstr || 'Unknown SQL error'
773 3 0 $DBI::err || 0

or 3 conditions

line l !l&&r !l&&!r condition
109 0 0 1 @$sort > 1 or not $sort->[0] =~ /\A(-)?id\z/
619 1 6 0 not exists $page->{'offset'} or $page->{'offset'} =~ /\A[0-9]+\z/