Condition Coverage

blib/lib/Class/DBI.pm
Criterion Covered Total %
condition 18 88 20.4


and 3 conditions

line !l l&&!r l&&r condition
265 0 0 0 UNIVERSAL::can($_, 'id') and $_ = $_->id
368 0 0 7 $name eq 'id' && join(' ', $class->primary_columns) eq 'id'
95 7 0 'Class::DBI'->can($name) and not $name eq 'id' && join(' ', $class->primary_columns) eq 'id'
508 0 0 0 $key and $Class::DBI::Weaken_Is_Available
626 0 0 0 @primary_columns == 1 and not defined $$data{$primary_columns[0]}
657 0 0 0 @_ == 1 and @primary_columns == 1

or 2 conditions

line l !l condition
233 28 6 shift() || 'All'
300 0 0 $class->find_column($want) || (return)
497 0 0 shift() || {}
932 0 36 $db ||= 'Main'
1040 5 0 $class->__meta_info || {}

or 3 conditions

line l !l&&r !l&&!r condition
44 0 0 0 ref $self || $self
163 0 0 0 $msg || $self
169 1 0 0 $msg || $self
217 0 6 0 ref $proto || $proto
220 6 0 0 $class->_table || $class->_table($class->table_alias)
225 0 1 0 ref $proto || $proto
227 0 1 0 $class->_table_alias || $class->_table_alias($class->moniker)
232 0 34 0 ref $proto || $proto
340 25 0 7 $acc eq $mut or $mut eq $default_accessor
437 0 0 0 $class->find_column($k) || &List::Util::first(sub { $_->mutator eq $k; } , $class->columns) || &List::Util::first(sub { $_->accessor eq $k; } , $class->columns) || $class->_croak("$k is not a column of $class")
499 0 0 0 $Live_Objects{$key} || $class->_fresh_init($key, $data)
520 0 0 0 ref $me || $me
559 0 0 0 ref $proto || $proto
609 0 0 0 $dbh->last_insert_id(undef, undef, $self->table, undef) || $$dbh{'mysql_insertid'} || eval { do { $dbh->func('last_insert_rowid') } }
715 0 0 0 ref $proto || $proto
725 0 0 0 $class->isa(ref $old_obj) or $old_obj->isa($class)
1016 0 0 14 $name eq 'create' or $name eq 'delete'
1060 0 0 0 $val ||= $self->_attrs($col)
1217 0 23 0 ref $self || $self
0 23 0 $required_classes{$load_class} ||= (my $for_class = ref $self || $self)