Branch Coverage

blib/lib/DBIx/Class/Storage/DBI/Pg.pm
Criterion Covered Total %
branch 3 38 7.8


line true false branch
20 0 0 +(shift())->_server_info->{'normalized_dbms_version'} >= 8.002 ? :
49 0 0 unless my $seq = ($col_info->{$col}{'sequence'} ||= $self->dbh_do('_dbh_get_autoinc_seq', $source, $col))
65 0 0 unless $sequence
67 0 0 ref $sequence eq 'SCALAR' ? :
81 0 0 if ref $table eq 'SCALAR'
85 0 0 if ($table =~ /^(.+)\.(.+)$/)
94 0 0 unless (defined $seq_expr and $seq_expr =~ /^nextval\(+'([^']+)'::(?:text|regclass)\)/i)
95 0 0 unless defined $seq_expr
96 0 0 if defined $schema and length $schema
97 0 0 $schema ? :
134 0 0 defined $schema && length $schema ? :
165 0 0 if &modver_gt_or_eq('DBD::Pg', '3.0.0') and $_[2]->FETCH('pg_switch_prepared') > 0
188 1 1 $_[2] ? :
2 0 if ($_[1] || '') =~ /\Abool(?:ean)?\z/i
197 0 0 if ($self->_is_binary_lob_type($data_type)) { }
202 0 0 unless (&modver_gt_or_eq('DBD::Pg', '2.17.2') or $DBD::Pg::__DBIC_DBD_VERSION_CHECK_DONE__)
207 0 0 if ($self->_server_info->{'normalized_dbms_version'} >= 9) { }
0 0 elsif (require DBIx::Class::Optional::Dependencies and my $missing = 'DBIx::Class::Optional::Dependencies'->req_missing_for(['rdbms_pg', 'binary_data'])) { }
258 0 0 if (not exists $sqltargs->{'producer_args'}{'postgres_version'} and my $dver = $self->_server_info->{'normalized_dbms_version'})