Condition Coverage

blib/lib/Basset/Object/Persistent.pm
Criterion Covered Total %
condition 7 129 5.4


and 3 conditions

line !l l&&!r l&&r condition
419 0 0 0 defined $type and $type eq 'primary'
0 0 0 defined $type and $type eq 'non_primary'
551 0 0 0 defined $val and not $valid
0 0 0 defined $val and not $valid and not $self->loading
1045 0 0 0 $self->is_instantiated($prop) and not $$clauses{'temporary'}
1066 0 0 0 @$foreign_cols and @$referencing_cols
1991 0 0 0 $self->tied_to_parent and not $self->should_be_committed
2015 0 0 0 not $self->force_insert and $self->in_db
2295 12 23 0 not $self->force_insert and $self->loaded || $self->committed
2652 0 0 0 $iterated and not $class->iterator
2683 0 0 0 $obj->is_relationship($transform) and ref $transformed
2698 0 0 0 $iterated and not @objs
2801 0 0 0 $self->tied_to_parent and not $self->should_be_deleted
2953 0 0 0 ref $_[0] and ref $_[1] eq 'HASH'
3059 0 0 0 $init{'table'} and not $init{'cols'}
0 0 0 not $init{'table'} and $init{'cols'}
3432 2 0 0 defined $driver and @_
2 0 0 defined $driver and @_ and defined $_[0]

or 2 conditions

line l !l condition
436 0 0 shift() || 'instance'
550 0 0 shift() || 0
981 0 0 $self->instantiated_relationships->{$prop} || 0
1042 0 0 shift() || {}
1165 0 0 shift() || {}
1409 0 0 shift() || {}
1879 0 0 shift() || 0
2435 0 0 shift() || {}
2626 0 0 $$clauses{'iterator'} || 0
2675 0 0 $obj->errcode || 'BOP-47'
2767 0 0 $$data[0]{'count'} || 0
3063 0 0 $init{'into'} ||= 'hash'

or 3 conditions

line l !l&&r !l&&!r condition
645 0 0 0 shift() || $class->tables
1079 0 0 0 $$clauses{'value'} || $$relationship_data{'class'}->load_all({'key', $$relationship_data{'key'}, 'constructor', {'tied_to_parent', $$relationship_data{'tied_to_parent'}}, %$clauses}, @values)
1411 0 0 0 $$init{'table'} || $class->primary_table
1595 0 0 0 $$relationship_data{'accessibility'} ne 'private' or $$relationship_data{'singleton'} != $singletons
2295 8 7 8 $self->loaded || $self->committed
2387 0 0 0 $class->load(@_) || $class->new
2644 0 0 0 $class->iterator || $class->arbitrary_sql('query', $query, 'vars', \@args, 'iterator', 1)
3054 0 0 0 $init{'query'} or $init{'stmt'}
3059 0 0 0 $init{'table'} and not $init{'cols'} or not $init{'table'} and $init{'cols'}
3065 0 0 0 $init{'driver'} || $self->driver
3072 0 0 0 $init{'selecting_query'} or $init{'query'} =~ /^\s*$arbitrary_selectables/i
3080 0 0 0 $init{'stmt'} || $driver->prepare_cached($init{'query'})
3284 0 0 0 $driver->begin || $self->error($driver->errvals)
3310 0 0 0 $driver->end || $self->error($driver->errvals)
3335 0 0 0 $driver->fail || $self->error($driver->errvals)
3361 0 0 0 $driver->finish || $self->error($driver->errvals)
3385 0 0 0 $driver->wipe || $self->error($driver->errvals)