Condition Coverage

blib/lib/FWS/V2/Database.pm
Criterion Covered Total %
condition 0 229 0.0


and 3 conditions

line !l l&&!r l&&r condition
296 0 0 0 $paramHash{'type'} ne $tableFieldHash{$paramHash{'field'}}{'type'} and $$self{'DBType'} =~ /^mysql$/i
304 0 0 0 $tableFieldHash{$paramHash{'table'} . '_' . $paramHash{'field'}}{'key'} ne 'MUL' and $paramHash{'key'}
495 0 0 0 $userHash{'guid'} and $emailFrom
575 0 0 0 $paramHash{'childGUID'} eq '' and $paramHash{'guid'} eq ''
0 0 0 $paramHash{'childGUID'} eq '' and $paramHash{'guid'} eq '' and not $paramHash{'type'}
0 0 0 $paramHash{'childGUID'} eq '' and $paramHash{'guid'} eq '' and not $paramHash{'type'} and $paramHash{'keywords'} eq ''
0 0 0 $paramHash{'childGUID'} eq '' and $paramHash{'guid'} eq '' and not $paramHash{'type'} and $paramHash{'keywords'} eq '' and $paramHash{'tags'} eq ''
647 0 0 0 $incTags =~ /^$checkTag$/ || $incTags =~ /^$checkTag,/ || $incTags =~ /,$checkTag$/ || $incTags =~ /,$checkTag,$/ and $incTags
0 0 0 $incTags =~ /^$checkTag$/ || $incTags =~ /^$checkTag,/ || $incTags =~ /,$checkTag$/ || $incTags =~ /,$checkTag,$/ and $incTags and $checkTag
753 0 0 0 $showMePlease and $dataHash{'siteGUID'} eq $paramHash{'siteGUID'}
0 0 0 $paramHash{'siteGUID'} ne $dataHash{'siteGUID'} and $dataHash{'active'}
933 0 0 0 $secondTest eq $firstTest and $secondTestData eq $firstTestData
1098 0 0 0 $checkTag and $$self{'elementHash'}{$guid}{'tags'} =~ /^$checkTag$/
1625 0 0 0 not $queueArray[$i]{'draft'} and !$queueArray[$i]{'type'} || $queueArray[$i]{'type'} eq 'sendmail'
1705 0 0 0 not $sth->errstr and $paramHash{'SQL'} =~ /^[\n\r\s]*(select|desc|show) /is
2249 0 0 0 not @{$self->runSQL('SQL', q[select 1 from profile where email like '] . $self->safeSQL($paramHash{'email'}) . q[' LIMIT 1]);} and $paramHash{'email'}
0 0 0 not @{$self->runSQL('SQL', q[select 1 from profile where email like '] . $self->safeSQL($paramHash{'email'}) . q[' LIMIT 1]);} and $paramHash{'email'} and $paramHash{'password'}
2286 0 0 0 $paramHash{'password'} and $paramHash{'passwordConfirm'} eq $paramHash{'password'}
2580 0 0 0 $pageId eq $self->homeGUID and not $paramHash{'templateGUID'}
3076 0 0 0 $paramHash{'guid'} and $type ne 'page' || $type ne 'home'
0 0 0 $paramHash{'guid'} and $type ne 'page' || $type ne 'home' and $recurCap < 100
3079 0 0 0 not $isDefault and $defaultElement
3212 0 0 0 $type ne 'page' and $type ne 'home'
0 0 0 $type ne 'page' and $type ne 'home' and $guid
3385 0 0 0 not $paramHash{'pin'} and $$self{'dataSchema'}{$paramHash{'_table'}}{'pin'}{'type'}
3471 0 0 0 $paramHash{'_keys'} and $paramHash{'_fields'}

or 2 conditions

line l !l condition
383 0 0 $paramHash{'noCache'} ||= 0
1440 0 0 $paramHash{'dateFrom'} ||= '0000-00-00 00:00:00'
1932 0 0 $paramHash{'layout'} ||= 'main'
1961 0 0 $paramHash{'showMobile'} ||= 0
1962 0 0 $paramHash{'showLogin'} ||= 0
1963 0 0 $paramHash{'default_element'} ||= 0
1964 0 0 $paramHash{'disableTitle'} ||= 0
1965 0 0 $paramHash{'disableEditMode'} ||= 0
2919 0 0 $userHash{'active'} ||= 0
3196 0 0 $depth ||= 10
3368 0 0 $paramHash{'_guidLeader'} ||= 'r'
3507 0 0 $paramHash{'keyField'} ||= 'guid'
3508 0 0 $paramHash{'keyValueKey'} ||= 'guid'
3589 0 0 $ord ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
377 0 0 0 $paramHash{'DBType'} ||= $$self{'DBType'}
378 0 0 0 $paramHash{'DBName'} ||= $$self{'DBName'}
379 0 0 0 $paramHash{'DBHost'} ||= $$self{'DBHost'}
380 0 0 0 $paramHash{'DBUser'} ||= $$self{'DBUser'}
381 0 0 0 $paramHash{'DBPort'} ||= $$self{'DBPort'}
382 0 0 0 $paramHash{'DBPassword'} ||= $$self{'DBPassword'}
393 0 0 0 not $$self{'_DBH_' . $paramHash{'DBName'} . $paramHash{'DBHost'}} or $paramHash{'noCache'} eq '1'
424 0 0 0 $$self{'_DBH_' . $paramHash{'DBName'} . $paramHash{'DBHost'}} or $paramHash{'noCache'}
558 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
647 0 0 0 $incTags =~ /^$checkTag$/ || $incTags =~ /^$checkTag,/ || $incTags =~ /,$checkTag$/ || $incTags =~ /,$checkTag,$/
719 0 0 0 $paramHash{'showAll'} or $self->formValue('editMode') eq '1'
0 0 0 $paramHash{'showAll'} or $self->formValue('editMode') eq '1' or $self->formValue('p') =~ /^fws_/
753 0 0 0 $dataHash{'active'} or $showMePlease and $dataHash{'siteGUID'} eq $paramHash{'siteGUID'}
0 0 0 $dataHash{'active'} or $showMePlease and $dataHash{'siteGUID'} eq $paramHash{'siteGUID'} or $paramHash{'siteGUID'} ne $dataHash{'siteGUID'} and $dataHash{'active'}
765 0 0 0 $dataHash{'title'} ||= $dataHash{'name'}
815 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
845 0 0 0 $dataHash{'title'} ||= $dataHash{'name'}
873 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
1238 0 0 0 $siteGUID ||= $$self{'siteGUID'}
1441 0 0 0 $paramHash{'dateTo'} ||= $self->formatDate('format', 'SQL')
1625 0 0 0 !$queueArray[$i]{'type'} || $queueArray[$i]{'type'} eq 'sendmail'
1675 0 0 0 $paramHash{'DBH'} ||= $$self{'_DBH_' . $$self{'DBName'} . $$self{'DBHost'}}
1853 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
1890 0 0 0 $usedHash{'guid'} or $paramHash{'newGUID'}
1937 0 0 0 $paramHash{'type'} eq 'page' or $paramHash{'type'} eq 'home'
1944 0 0 0 $paramHash{'type'} eq 'home' or $paramHash{'parent'}
2040 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
2213 0 0 0 not $paramHash{'sentDate'} or $paramHash{'sentDate'} =~ /^0000.00.00/
2302 0 0 0 $paramHash{'pin'} ||= $self->createPin
2379 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
2713 0 0 0 $dataCacheFields{$key} or $key =~ /^(site_guid|guid|name|title|pageIdOfElement|pageDescription)$/
2823 0 0 0 keys %paramHash || $self->isUserLoggedIn
2867 0 0 0 $self->isUserLoggedIn or $lookupGUID
2910 0 0 0 $self->isUserLoggedIn or $lookupGUID
3064 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
3076 0 0 0 $type ne 'page' || $type ne 'home'
3086 0 0 0 not $type or $isDefault > 0
0 0 0 not $type or $isDefault > 0 or $isDefault < 0
3105 0 0 0 $type eq 'page' or $type eq 'home'
3367 0 0 0 $paramHash{'siteGUID'} ||= $$self{'siteGUID'}
3522 0 0 0 $key =~ /^_/ or $key =~ /^(guid|site_guid|created_date|createdDate|siteGUID|pin)$/