Branch Coverage

blib/lib/Pgtools/Connection.pm
Criterion Covered Total %
branch 11 14 78.5


line true false branch
12 3 3 if ($#tmp != 4)
15 2 1 if $tmp[0] ne ''
16 2 1 if $tmp[1] ne ''
17 3 0 if $tmp[2] ne ''
18 1 2 if $tmp[3] ne ''
19 1 2 if $tmp[4] ne ''
25 0 0 unless $self->set('dbh', 'DBI'->connect('dbi:Pg:dbname=' . $self->database . ';host=' . $self->host . ';port=' . $self->port, $self->user, $self->password))