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
187 4 6 if $dbh->{'pg_server_version'} >= 90300
191 4 2 if $dbh->{'pg_server_version'} >= 90000
212 0 0 if $self->initialized
237 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 ") ? :
245 4 2 if ($version < 90300 or $psql_maj < 9) { }
250 2 2 if $version < 90300
251 2 2 if ($psql_maj < 9)
286 0 0 if $self->_provider eq "postgres"
309 0 0 if $self->_provider ne "postgres"
319 0 0 if $dbh->pg_ready
0 0 if $self->_timeout(sub {
334 2 2 $self->sqitch->verbosity > 1 ? :
350 0 0 unless my(@tags) = $change->tags
443 4 4 unless $DBI::state and $DBI::state eq "42P01"
445 2 2 unless $dbh->{'pg_server_version'} >= 90000
482 6 2 unless my $pass = $self->password
490 8 2 unless my $pass = $self->password
498 2 2 unless my $pass = $self->password
507 4 2 unless my $pass = $self->password