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
188 4 6 if $dbh->{'pg_server_version'} >= 90300
192 4 2 if $dbh->{'pg_server_version'} >= 80400
213 0 0 if $self->initialized
238 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 ") ? :
246 4 2 if ($version < 90300 or $psql_maj < 9) { }
251 2 2 if $version < 90300
252 2 2 if ($psql_maj < 9)
287 0 0 if $self->_provider eq "postgres"
310 0 0 if $self->_provider ne "postgres"
320 0 0 if $dbh->pg_ready
0 0 if $self->_timeout(sub {
335 2 2 $self->sqitch->verbosity > 1 ? :
351 0 0 unless my(@tags) = $change->tags
444 4 4 unless $DBI::state and $DBI::state eq "42P01"
446 2 2 unless $dbh->{'pg_server_version'} >= 90000
478 6 2 unless my $pass = $self->password
486 8 2 unless my $pass = $self->password
494 2 2 unless my $pass = $self->password
503 4 2 unless my $pass = $self->password