Condition Coverage

blib/lib/Rose/DB/Object.pm
Criterion Covered Total %
condition 2 100 2.0


and 3 conditions

line !l l&&!r l&&r condition
75 0 0 0 $self->{'__xrdbopriv_loaded_from_driver'} and $self->{'__xrdbopriv_loaded_from_driver'} ne $new_db->{'driver'}
228 0 0 0 not $found_key and $alt_columns
568 0 0 0 not $args{'insert'} and $args{'update'} || $self->{'__xrdbopriv_in_db'}
688 0 0 0 not $args{'insert'} and $args{'update'} || $self->{'__xrdbopriv_in_db'}
1191 0 0 0 not $using_pk_placeholders and defined $self->$get_pk
1546 0 0 0 $db and $started_new_tx
1646 0 0 0 $tmp_msg and $found

or 2 conditions

line l !l condition
274 0 0 $args{'lock'}{'type'} ||= 'for update'
283 0 0 $args{'manager_class'} || 'Rose::DB::Object::Manager'
367 0 0 $self || 1
497 0 0 $self || 1
513 0 0 $args{'db'} || $self->db || (return 0)
606 0 0 $fk->object_has_foreign_object($self) || (next)
649 0 0 $rel->object_has_related_objects($self) || (next)
721 0 0 $self || 1
773 0 0 $self || 1
780 0 0 $self || 1
826 0 0 $self || 1
833 0 0 $self || 1
977 0 0 $self || 1
1267 0 0 $self || 1

or 3 conditions

line l !l&&r !l&&!r condition
51 0 0 0 $self->{'__xrdbopriv_meta'} ||= $self->meta_class->for_class(ref $self)
54 5839 98 0 $Rose::DB::Object::Metadata::Objects{$self} || $self->meta_class->for_class($self)
91 0 0 0 $self->{'db'} ||= $self->_init_db
225 0 0 0 $alt_columns ||= $cols
511 0 0 0 $self->{'__xrdbopriv_on_save'} or $cascade
516 0 0 0 $args{'db'} ||= $db
554 0 0 0 $object or ref $object
568 0 0 0 $args{'update'} || $self->{'__xrdbopriv_in_db'}
608 0 0 0 Rose::DB::Object::Util::has_modified_columns($foreign_object) or Rose::DB::Object::Util::has_modified_children($foreign_object)
653 0 0 0 Rose::DB::Object::Util::has_modified_columns($related_object) or Rose::DB::Object::Util::has_modified_children($related_object)
677 0 0 0 $db->rollback or warn $db->error
688 0 0 0 $args{'update'} || $self->{'__xrdbopriv_in_db'}
1015 0 0 0 @pk_values == @pk_methods or $args{'on_duplicate_key_update'}
1110 0 0 0 $args{'on_duplicate_key_update'} or $changes_only
1191 0 0 0 $using_pk_placeholders or not defined $self->$get_pk
1387 0 0 0 $map_class->meta->foreign_key($map_from) || $map_class->meta->relationship($map_from) || Carp::confess(q[No foreign key or 'many to one' relationship ], "named '${map_from}' in class $map_class")
1618 0 0 0 @fks or @rels