Branch Coverage

blib/lib/App/Sqitch/Engine/pg.pm
Criterion Covered Total %
branch 28 44 63.6


line true false branch
26 0 26 if not $self->target->name =~ /:/ or $self->target->uri->dbname
31 0 26 if $uri->password
176 4 6 if $dbh->{'pg_server_version'} >= 90300
180 4 2 if $dbh->{'pg_server_version'} >= 90000
201 0 0 if $self->initialized
226 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 ") ? :
234 4 2 if ($version < 90300 or $psql_maj < 9) { }
239 2 2 if $version < 90300
240 2 2 if ($psql_maj < 9)
280 0 0 if $self->_provider eq "postgres"
290 0 0 if $self->_provider ne "postgres"
305 0 0 if $self->_provider ne "postgres"
315 0 0 if $dbh->pg_ready
0 0 if $self->_timeout(sub {
330 2 2 $self->sqitch->verbosity > 1 ? :
346 0 0 unless my(@tags) = $change->tags
439 4 4 unless $DBI::state and $DBI::state eq "42P01"
441 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