Branch Coverage

blib/lib/ClearPress/util.pm
Criterion Covered Total %
branch 25 44 56.8


line true false branch
29 0 0 if 'Apache2::RequestUtil'->can('request')
31 0 11 if (&MP2()) { }
50 0 42 if (&MP2())
54 0 0 if (not $singleton_key) { }
57 0 0 if $DEBUG_UTIL
59 0 0 if $DEBUG_UTIL
72 8 18 if (exists $INSTANCES->{$singleton_key})
76 2 24 if ($ref and ref $ref eq 'HASH')
82 18 8 unless (exists $self->{'transactions'})
94 16 35 if ($cgi)
98 3 48 unless ($self->{'cgi'})
112 1 653 if (scalar @args)
128 20 632 unless ($self->{'config'})
132 0 20 if ($dtconfigpath ne $configpath)
136 1 19 unless (-e $dtconfigpath)
145 0 651 unless ($self->{'config'})
166 15 187 unless ($self->{'driver'})
170 0 15 unless ($dbsection and $config->SectionExists($dbsection))
189 0 1 unless print {*STDERR;} map({strftime('[%Y-%m-%dT%H:%M:%S] ', localtime) . "$_\n";} @args)
206 0 16 if (exists $self->{'dbh'})
263 0 0 if ($line =~ /MySQL[ ]server[ ]has[ ]gone[ ]away/imsx)
267 0 0 unless print {*STDERR;} $line