Branch Coverage

blib/lib/ORM/Db/DBI.pm
Criterion Covered Total %
branch 75 144 52.0


line true false branch
60 0 4 defined $arg{'connect_retries'} ? :
61 0 4 defined $arg{'retry_sleep'} ? :
65 0 4 if ($arg{'data_source'}) { }
71 0 4 $arg{'host'} ? :
0 4 $arg{'options'} ? :
78 4 0 unless $arg{'delayed_connect'}
101 2 0 if $arg{'filter'}
104 2 0 if ($arg{'filter'})
122 2 0 $res ? :
133 1 2 if ($arg{'data'})
137 13 0 if defined $arg{'data'}{$name}
141 0 0 if (ref $group_by and UNIVERSAL::isa($group_by, 'ORM::Metaprop'))
148 1 2 if $arg{'order'}
149 3 0 if $arg{'filter'}
150 0 3 if $arg{'post_filter'}
163 0 0 if $group_by
164 0 0 if (UNIVERSAL::isa($grp, 'ORM::Expr')) { }
179 1 2 if ($arg{'data'}) { }
184 13 0 ref $arg{'data'}{$alias} ? :
186 12 1 if $select
199 3 0 $cond ? :
0 3 $group_by ? :
0 3 $having ? :
1 2 $order ? :
2 1 $limit ? :
0 3 $$self{'ta'} ? :
234 1 0 unless ($error->fatal)
248 1 0 if ($obj) { }
255 0 0 if ($$data{'class'} ne $arg{'class'})
277 0 0 if (%residual_tables)
285 0 0 if $error->fatal
299 0 1 $error->fatal ? :
314 1 7 if (ref $arg{'tables'}{$tables[$i]} eq 'HASH') { }
328 1 7 if ($i < $#tables)
336 2 5 $$self{'ta'} ? :
371 21 1 if ($i == 0) { }
373 0 21 if $id
374 2 19 unless $obj_class->_is_sealed
393 22 0 if ($rows_affected == 1) { }
395 21 1 if $i == 0 and not $id
420 5 0 unless ($error->fatal)
454 6 1 unless ref $arg{'values'}{$prop}
455 1 6 if (UNIVERSAL::isa($arg{'values'}{$prop}, 'ORM::Expr'))
465 5 1 if ($check_all_props)
469 0 0 defined $arg{'old_values'}{$prop} ? :
483 1 6 UNIVERSAL::isa($arg{'values'}{$prop}, 'ORM::Expr') ? :
506 0 6 if ($rows_affected == 0) { }
0 6 elsif ($rows_affected > $tjoin->tables_count) { }
508 0 0 if $arg{'error'}
517 0 0 if $arg{'error'}
544 2 0 unless ($error->fatal)
554 0 3 if ($rows_affected != 1)
561 2 0 unless ($error->fatal)
604 9 0 unless ($error->fatal)
624 0 0 if $self->_db_handler->err
638 0 0 if $self->_db_handler->err
651 0 0 unless ($$self{'lost_connection'})
654 0 0 if $self->_db_handler->err
744 0 102 unless ($$self{'db'})
748 0 0 if ($retry) { }
750 0 0 if ($$self{'delayed_connect'}) { }
780 102 0 if $st and $DBI::VERSION >= 1.21
782 102 0 if ($st) { }
791 0 102 if ($st and $st->err and $self->_lost_connection($st->err))
803 0 102 if ($st and $st->err) { }
0 102 elsif ($h_error->any) { }
823 61 0 $st && $st->rows != 4294967294 ? :
0 41 $error->fatal ? :
61 41 $arg{'return_rows_count'} ? :
863 2 1 if ($pagesize)
878 4 0 if ($arg{'check'})
887 0 2 if ($referers)