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)
79 0 13 unless "DBI"->connect($self->dsn, $self->user, $self->password)
82 0 13 if ($Workflow::Persister::DBI::EVAL_ERROR)
99 0 14 if $self->workflow_id_generator and $self->history_id_generator
103 1 13 if ($driver eq 'Pg') { }
0 13 elsif ($driver eq 'Oracle') { }
0 13 elsif ($driver eq 'mysql') { }
1 12 elsif ($driver eq 'SQLite') { }
204 18 1 if ($id)
216 16 3 if ($self->log->is_debug)
228 0 19 if ($Workflow::Persister::DBI::EVAL_ERROR)
231 1 18 unless ($id)
233 0 1 unless ($id)
254 6 0 if ($self->log->is_debug)
266 0 6 if ($Workflow::Persister::DBI::EVAL_ERROR)
270 2 4 unless $row
289 18 34 if ($self->log->is_debug)
302 0 52 if ($Workflow::Persister::DBI::EVAL_ERROR)
315 0 27 if $h->is_saved
323 25 2 if ($id)
331 24 3 if ($self->log->is_debug)
343 0 27 if ($Workflow::Persister::DBI::EVAL_ERROR)
346 2 25 unless ($id)
348 0 2 unless ($id)
371 2 0 if ($self->log->is_debug)
383 0 2 if ($Workflow::Persister::DBI::EVAL_ERROR)
411 2 68 if (not $self->autocommit)
414 0 2 if ($Workflow::Persister::DBI::EVAL_ERROR)
423 0 0 if (not $self->autocommit)
426 0 0 if ($Workflow::Persister::DBI::EVAL_ERROR)
440 13 137 unless ($self->_wf_fields)
448 13 137 unless ($self->_hist_fields)