Branch Coverage

blib/lib/Workflow/Persister/DBI.pm
Criterion Covered Total %
branch 29 52 55.7


line true false branch
40 41 44 if defined $params->{$_}
43 0 17 if (defined $params->{'options'})
51 16 1 $self->handle ? :
77 0 16 unless ($self->dsn)
109 0 17 if $self->workflow_id_generator and $self->history_id_generator
113 1 16 if ($driver eq 'Pg') { }
0 16 elsif ($driver eq 'Oracle') { }
0 16 elsif ($driver eq 'mysql') { }
0 16 elsif ($driver eq 'SQLite') { }
214 22 0 if ($id)
226 0 22 if ($self->log->is_debug)
239 0 22 unless ($id)
241 0 0 unless ($id)
262 0 7 if ($self->log->is_debug)
276 1 6 unless $row
295 0 34 if ($self->log->is_debug)
319 0 30 if $h->is_saved
327 30 0 if ($id)
335 0 30 if ($self->log->is_debug)
348 0 30 unless ($id)
350 0 0 unless ($id)
373 0 4 if ($self->log->is_debug)
408 0 56 if (not $self->autocommit)
422 0 0 if (not $self->autocommit) { }
446 14 109 unless ($self->_wf_fields)
454 14 109 unless ($self->_hist_fields)