Branch Coverage

blib/lib/DBIx/Connection.pm
Criterion Covered Total %
branch 0 96 0.0


line true false branch
400 0 0 if $loaded_modules{$rdbms_module}
405 0 0 if $@
419 0 0 unless my $dbh = 'DBI'->connect($self->dsn, $self->username, $self->password, {'PrintError', 0, 'AutoCommit', 1})
439 0 0 unless (eval { do { $self->dbh->ping } })
455 0 0 unless $self->dbh->do($sql)
477 0 0 if (not $result or $self->no_cache)
545 0 0 if (not $result or $self->no_cache)
594 0 0 if (not $result or $self->no_cache)
646 0 0 if $self->_active_transaction
649 0 0 unless my $result = $dbh->begin_work
664 0 0 unless $dbh->commit
679 0 0 unless $dbh->rollback
698 0 0 unless $self->name
699 0 0 if ($self->dbh) { }
705 0 0 if keys %{$self->db_session_variables;}
719 0 0 unless (exists $connections_counter{$name})
723 0 0 if ($DBIx::Connection::CONNECTION_POOLING) { }
757 0 0 unless ($self->in_use)
764 0 0 unless ($connection->in_use)
782 0 0 exists $connections_counter{$name} ? :
815 0 0 unless $self->is_connected
816 0 0 if ($self->_is_idled)
845 0 0 if not $connection->in_use and $connection->_is_idled
860 0 0 if ($DBIx::Connection::CONNECTION_POOLING)
877 0 0 unless my $dbh = $self->dbh
881 0 0 unless $self->dbh->disconnect
933 0 0 $sth ? :
934 0 0 if ($result and not @$result)
936 0 0 if ($module_name and $module_name->can('primary_key_info'))
939 0 0 $schema ? :
961 0 0 $schema ? :
977 0 0 unless (@$result)
979 0 0 if ($module_name and $module_name->can('has_table'))
994 0 0 if ($module_name and $module_name->can('set_session_variables'))
1023 0 0 if ($module_name and $module_name->can('has_sequence')) { }
1063 0 0 if ($module_name and $module_name->can('reset_sequence')) { }
1080 0 0 unless $self->collect_statistics
1093 0 0 unless $self->collect_statistics
1099 0 0 if (not exists $$info{' called'}) { }
1106 0 0 if $$info{'min'} > $duration
1107 0 0 if $$info{'max'} < $duration
1121 0 0 unless $self->collect_statistics
1168 0 0 if ($self->collect_statistics and -d $dir)
1170 0 0 unless open my $fh, '>>', $file
1187 0 0 $dbh ? :
1188 0 0 if ($self->custom_error_handler) { }
1209 0 0 if ($module_name and $module_name->can('update_lob')) { }
1228 0 0 if ($module_name and $module_name->can('fetch_lob')) { }