Branch Coverage

blib/lib/DBIx/QuickDB/Driver/PostgreSQL.pm
Criterion Covered Total %
branch 10 54 18.5


line true false branch
41 0 0 unless my $type = builtin::reftype($arg)
42 0 0 unless $type eq "HASH"
45 0 0 if $binary = $arg->{'postgres'}
132 0 9 ref $this ? :
136 9 0 unless $DBDPG
138 9 0 if ($spec->{'bootstrap'})
139 9 0 unless $check{'initdb'} and -x $check{'initdb'}
140 9 0 unless $check{'createdb'} and -x $check{'createdb'}
143 9 0 if ($spec->{'autostart'})
144 9 0 unless $check{'postgres'} and -x $check{'postgres'}
147 9 0 if ($spec->{'load_sql'})
148 9 0 unless $check{'psql'} and -x $check{'psql'}
151 0 9 unless @bad
166 0 0 unless defined $self->{'env_vars'}{'PGPORT'}
175 0 0 if defined $cfg->{$key}
184 0 0 if $vars->{'PGPORT'} and $vars->{'PGPORT'} eq $self->port
202 0 0 unless open my $cf, ">", "$db_dir/postgresql.conf"
205 0 0 unless length $val
217 0 0 unless mkdir $db_dir
237 0 0 if $ok
239 0 0 if $try == 5
244 0 0 unless $self->{'autostart'}
270 0 0 unless $self->started
285 0 0 unless defined $db_name
331 0 0 if $waited > $timeout
344 0 0 if $ok
346 0 0 unless $err =~ /the database system is starting up/