Branch Coverage

blib/lib/DBIx/Class/Storage.pm
Criterion Covered Total %
branch 56 74 75.6


line true false branch
51 0 457 if ref $self
60 1 456 if $ENV{'DBIX_CLASS_STORAGE_DBI_DEBUG'} or $ENV{'DBIC_TRACE'}
75 449 14 if ref $self->{'schema'}
112 671 1 if (ref $self and $self->schema) { }
183 16 0 if $_[0]->failed_attempt_count == 1
202 8693 716 if ($self->transaction_depth == 0) { }
4 712 elsif ($self->auto_savepoint) { }
203 18 8675 if $self->debug
226 8527 600 if ($self->transaction_depth == 1) { }
600 0 elsif ($self->transaction_depth > 1) { }
227 16 8511 if $self->debug
234 2 598 if $self->auto_savepoint
252 130 114 if ($self->transaction_depth == 1) { }
114 0 elsif ($self->transaction_depth > 1) { }
253 2 128 if $self->debug
261 2 112 if ($self->auto_savepoint) { }
288 0 21 unless $self->transaction_depth
291 0 21 unless my $exec = $self->can('_exec_svp_begin')
294 17 4 unless defined $name
299 9 12 if $self->debug
323 0 10 unless $self->transaction_depth
326 0 10 unless my $exec = $self->can('_exec_svp_release')
329 2 8 if (defined $name) { }
335 1 2 unless @stack
344 0 8 unless $name = pop @{$self->savepoints;}
348 5 4 if $self->debug
366 0 14 unless $self->transaction_depth
369 0 14 unless my $exec = $self->can('_exec_svp_rollback')
372 2 12 if (defined $name) { }
382 0 2 unless @stack
388 0 12 unless $name = $self->savepoints->[-1]
392 6 8 if $self->debug
452 5 0 if ($self->debugobj->can('debugfh'))
469 4 363 if (@_)
474 0 5 if (my $profile = $ENV{'DBIC_TRACE_PROFILE'}) { }
478 0 0 if ($profile =~ m[^\.?/]) { }
533 5 0 if ($self->debugobj->can('callback'))