Condition Coverage

blib/lib/DBIx/Class/Storage.pm
Criterion Covered Total %
condition 19 23 82.6


and 3 conditions

line !l l&&!r l&&r condition
114 0 1 474 ref $self and $self->schema
297 166 2 113 ($self->transaction_depth || 0) > 1 and not $self->auto_savepoint
168 2 111 ($self->transaction_depth || 0) > 1 and not $self->auto_savepoint and $self->_seems_connected
367 8 11 14 defined &blessed($$exception) && $$exception->isa('DBIx::Class::Exception')
483 0 2 2 @stack and $stack[-1] ne $name

or 2 conditions

line l !l condition
297 275 6 $self->transaction_depth || 0

or 3 conditions

line l !l&&r !l&&!r condition
62 0 1 475 $ENV{'DBIX_CLASS_STORAGE_DBI_DEBUG'} or $ENV{'DBIC_TRACE'}
578 883 35 0 $self->{'debugobj'} ||= do { if (my $profile = $ENV{'DBIC_TRACE_PROFILE'}) { require DBIx::Class::Storage::Debug::PrettyPrint; my @pp_args; if ($profile =~ m[^\.?/]) { require DBIx::Class::Optional::Dependencies; if (my $missing = 'DBIx::Class::Optional::Dependencies'->req_missing_for('config_file_reader')) { $self->throw_exception("Unable to parse TRACE_PROFILE config file '${profile}' without $missing"); } ; my $cfg = &dbic_internal_try(sub { 'Config::Any'->load_files({'files', [$profile], 'use_ext', 1}); } , &dbic_internal_catch(sub { $_ =~ s/at \s+ .+ Storage\.pm \s line \s \d+ $//x; $self->throw_exception("Failure processing \$ENV{DBIC_TRACE_PROFILE}: $_"); } )); @pp_args = values %{$$cfg[0];}; } else { @pp_args = {'profile', $profile}; } ; &dbic_internal_try(sub { 'DBIx::Class::Storage::Debug::PrettyPrint'->new(@pp_args); } , &dbic_internal_catch(sub { $self->throw_exception($_); } )); } else { require DBIx::Class::Storage::Statistics; 'DBIx::Class::Storage::Statistics'->new; } }