Branch Coverage

blib/lib/DBIx/ScopedTransaction.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
117 1 13 unless defined wantarray
122 0 13 unless Data::Validate::Type::is_instance($database_handle, 'class', 'DBI::db')
125 0 12 unless $database_handle->begin_work
176 5 23 if (defined $value)
197 1 3 unless ($self->is_active)
204 2 1 if ($database_handle->commit) { }
212 1 0 unless defined $error
232 1 4 unless ($self->is_active)
239 3 1 if ($database_handle->rollback) { }
247 1 0 unless defined $error
309 7 5 if ($self->is_active)
325 7 0 if (defined $database_handle) { }
327 6 1 if ($database_handle->rollback) { }
348 2 5 if (defined $DESTROY_LOGGER) { }
352 2 0 if (Data::Validate::Type::is_coderef($DESTROY_LOGGER)) { }
375 0 12 $self->can('SUPER::DESTROY') ? :