Condition Coverage

blib/lib/Class/DBI/Frozen/301.pm
Criterion Covered Total %
condition 15 97 15.4


and 3 conditions

line !l l&&!r l&&r condition
194 0 0 0 ($alias ||= '') &&= " AS $alias"
420 0 0 8 $name eq 'id' && join(' ', $class->primary_columns) eq 'id'
220 8 0 'Class::DBI'->can($name) and not $name eq 'id' && join(' ', $class->primary_columns) eq 'id'
551 0 0 0 $obj_key and $Class::DBI::Weaken_Is_Available
656 0 0 0 @primary_columns == 1 and not defined $$data{$primary_columns[0]}
687 0 0 0 @_ == 1 and @primary_columns == 1

or 2 conditions

line l !l condition
194 0 0 $alias ||= ''
309 43 6 shift() || 'All'
371 0 0 $class->find_column($want) || (return)
532 0 0 shift() || {}
945 0 216 $db ||= 'Main'

or 3 conditions

line l !l&&r !l&&!r condition
61 0 0 0 ref $self || $self
193 0 0 0 $alias or $table
0 0 0 $class || ref $self || $self
204 0 0 0 $cmap{$_} || $self->_croak("Don't understand table '${_}' in JOIN")
214 0 0 0 &$join_col($c1, $c2) || do { ($c1, $c2) = ($c2, $c1); ($t1, $t2) = ($t2, $t1); &$join_col($c1, $c2) }
245 0 0 0 $msg || $self
251 1 0 0 $msg || $self
293 0 9 0 ref $proto || $proto
296 9 0 0 $class->_table || $class->_table($class->table_alias)
301 0 1 0 ref $proto || $proto
303 0 1 0 $class->_table_alias || $class->_table_alias($class->moniker)
308 0 49 0 ref $proto || $proto
481 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")
594 0 0 0 ref $proto || $proto
639 0 0 0 $$dbh{'mysql_insertid'} || eval { do { $dbh->func('last_insert_rowid') } }
739 0 0 0 ref $proto || $proto
749 0 0 0 $class->isa(ref $old_obj) or $old_obj->isa($class)
1018 0 0 5 $name eq 'create' or $name eq 'delete'
1062 0 0 0 $val ||= $self->_attrs($col)
1093 0 0 0 ref $proto || $proto
1100 0 0 0 $class->find_column($col) || &List::Util::first(sub { $_->accessor eq $col; } , $class->columns) || $class->_croak("$col is not a column of $class")
1220 0 74 0 ref $self || $self
0 74 0 $required_classes{$load_class} ||= (my $for_class = ref $self || $self)