Condition Coverage

blib/lib/PgSQL.pm
Criterion Covered Total %
condition 4 43 9.3


and 3 conditions

line !l l&&!r l&&r condition
206 0 0 0 $forRead and $sel->can_read
0 0 0 $forWrite and $sel->can_write
413 0 0 0 int $_ == 0 and $_ eq "\000"

or 2 conditions

line l !l condition
82 0 0 $args{'DBName'} || $ENV{'PGDATABASE'} || ''
89 0 0 $args{'Password'} || $ENV{'PGPASS'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
67 0 0 1 $args{'Host'} || $ENV{'PGHOST'}
68 0 1 0 $args{'Port'} || $ENV{'PGPORT'} || &DEF_PGPORT
69 0 1 0 $args{'Port'} ||= DEF_PGPORT()
77 0 1 0 $args{'Peer'} ||= UNIXSOCK_PATH(\%args)
85 0 0 0 $args{'Tty'} || $ENV{'PGTTY'} || &DEF_PGTTY
86 0 0 0 $args{'Options'} || $ENV{'PGOPTIONS'} || &DEF_PGOPTIONS
88 0 0 0 $args{'User'} || $ENV{'PGUSER'} || ${*$self;}{'DBNAME'}
205 0 0 0 $forRead or $forWrite
206 0 0 0 $forRead and $sel->can_read or $forWrite and $sel->can_write
368 0 0 0 ${*$self;}{'CURSOR'} || 'PgSQL::Cursor'->new($self, undef, undef)