Condition Coverage

blib/lib/ClearPress/util.pm
Criterion Covered Total %
condition 13 24 54.1


and 3 conditions

line !l l&&!r l&&r condition
76 24 0 2 $ref and ref $ref eq 'HASH'
170 0 0 15 $dbsection and $config->SectionExists($dbsection)

or 2 conditions

line l !l condition
120 106 1 $ENV{'dev'} || 'live'
125 652 0 $self->configpath || ''
130 20 0 $dtconfigpath ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
43 16 26 0 ref $self || $self
116 8 646 0 $self->{'configpath'} || $self->data_path . '/config.ini'
140 0 19 0 $self->{'config'} ||= 'Config::IniFiles'->new('-file', $dtconfigpath)
174 15 0 0 $config->val($dbsection, 'driver') || $DEFAULT_DRIVER