Branch Coverage

blib/lib/App/Sqitch/Engine/pg.pm
Criterion Covered Total %
branch 28 42 66.6


line true false branch
26 0 26 if not $self->target->name =~ /:/ or $self->target->uri->dbname
31 0 26 if $uri->password
186 4 6 if $dbh->{'pg_server_version'} >= 90300
190 4 2 if $dbh->{'pg_server_version'} >= 80400
211 0 0 if $self->initialized
236 2 4 $self->_probe('-c', "\n SELECT count(*)\n FROM pg_catalog.pg_proc p\n JOIN pg_catalog.pg_namespace n ON p.pronamespace = n.oid\n WHERE nspname = 'pg_catalog'\n AND proname = 'pgxc_version';\n ") ? :
244 4 2 if ($version < 90300 or $psql_maj < 9) { }
249 2 2 if $version < 90300
250 2 2 if ($psql_maj < 9)
285 0 0 if $self->_provider eq "postgres"
308 0 0 if $self->_provider ne "postgres"
318 0 0 if $dbh->pg_ready
0 0 if $self->_timeout(sub {
333 2 2 $self->sqitch->verbosity > 1 ? :
349 0 0 unless my(@tags) = $change->tags
442 4 4 unless $DBI::state and $DBI::state eq "42P01"
444 2 2 unless $dbh->{'pg_server_version'} >= 90000
476 6 2 unless my $pass = $self->password
484 8 2 unless my $pass = $self->password
492 2 2 unless my $pass = $self->password
501 4 2 unless my $pass = $self->password