Branch Coverage

lib/Workflow/Persister/DBI.pm
Criterion Covered Total %
branch 47 68 69.1


line true false branch
41 35 35 if defined $params->{$_}
45 13 1 $self->handle ? :
71 0 13 unless ($self->dsn)
77 0 13 unless "DBI"->connect($self->dsn, $self->user, $self->password)
80 0 13 if ($Workflow::Persister::DBI::EVAL_ERROR)
97 0 14 if $self->workflow_id_generator and $self->history_id_generator
101 1 13 if ($driver eq 'Pg') { }
0 13 elsif ($driver eq 'Oracle') { }
0 13 elsif ($driver eq 'mysql') { }
1 12 elsif ($driver eq 'SQLite') { }
202 18 1 if ($id)
214 16 3 if ($self->log->is_debug)
224 0 19 if ($Workflow::Persister::DBI::EVAL_ERROR)
227 1 18 unless ($id)
229 0 1 unless ($id)
250 6 0 if ($self->log->is_debug)
260 0 6 if ($Workflow::Persister::DBI::EVAL_ERROR)
264 2 4 unless $row
283 18 34 if ($self->log->is_debug)
294 0 52 if ($Workflow::Persister::DBI::EVAL_ERROR)
307 0 27 if $h->is_saved
315 25 2 if ($id)
323 24 3 if ($self->log->is_debug)
333 0 27 if ($Workflow::Persister::DBI::EVAL_ERROR)
336 2 25 unless ($id)
338 0 2 unless ($id)
361 2 0 if ($self->log->is_debug)
371 0 2 if ($Workflow::Persister::DBI::EVAL_ERROR)
399 2 68 if (not $self->autocommit)
401 0 2 if ($Workflow::Persister::DBI::EVAL_ERROR)
410 0 0 if (not $self->autocommit)
412 0 0 if ($Workflow::Persister::DBI::EVAL_ERROR)
426 13 137 unless ($self->_wf_fields)
434 13 137 unless ($self->_hist_fields)