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
75 24 0 2 $ref and ref $ref eq 'HASH'
169 0 0 15 $dbsection and $config->SectionExists($dbsection)

or 2 conditions

line l !l condition
119 106 1 $ENV{'dev'} || 'live'
124 603 0 $self->configpath || ''
129 20 0 $dtconfigpath ||= ''

or 3 conditions

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