Branch Coverage

blib/lib/DBIx/Class/Storage/BlockRunner.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
92 24 45266 if (&reftype($cref) || '') ne 'CODE'
100 0 45266 if $storage->{'_in_do_block'} and not $self->wrap_txn
103 45204 62 unless $storage->{'_in_do_block'}
115 165 45111 @_ ? :
119 455 44821 $self->wrap_txn ? :
126 455 44821 if (defined $txn_init_depth)
141 314 44950 if (defined $txn_init_depth and not &is_exception($run_err))
144 0 314 if ($delta_txn) { }
146 0 0 unless $delta_txn == 1 and $cur_depth == 0
154 314 0 eval { do { $storage->txn_commit; 1 } } ? :
159 152 45112 if (&is_exception($run_err))
162 130 22 if ($txn_begin_ok)
165 111 10 !eval { do { $storage->txn_rollback; 1 } } ? :
121 9 $storage->_seems_connected ? :
169 10 120 if ($rollback_exception and not defined &blessed($rollback_exception) && $rollback_exception->isa('DBIx::Class::Storage::NESTED_ROLLBACK_EXCEPTION'))
190 130 0 $storage->{'_dbh_autocommit'} ? :
141 11 if defined $txn_init_depth and $txn_init_depth > ($storage->{'_dbh_autocommit'} ? 0 : 1) or not $self->retry_handler->($self)
195 0 11 if $self->retry_debug
204 0 10 if defined $txn_init_depth and $storage->transaction_depth
212 6826 38286 wantarray ? :