Branch Coverage

blib/lib/FAQ/OMatic/Auth.pm
Criterion Covered Total %
branch 0 90 0.0


line true false branch
76 0 0 unless (defined $trustedID)
77 0 0 if (defined $$params{'auth'}) { }
0 0 elsif (defined $$params{'id'}) { }
111 0 0 if ($whocanNum <= 5 and $whocanNum <= $aq)
117 0 0 if ($whocanNum == 6 and FAQ::OMatic::Groups::checkMembership($whocan, $id))
124 0 0 if ($whocanNum == 7 and $aq == 5 and $id eq getInheritedProperty($item, 'Moderator') || $id eq $FAQ::OMatic::Config::adminAuth || 'anybody' eq getInheritedProperty($item, 'Moderator'))
142 0 0 if (isPropertyGlobal($property))
149 0 0 unless (ref $item)
154 0 0 if (defined $item and defined $$item{$property})
156 0 0 wantarray ? :
160 0 0 if (not defined $item or $item eq '' or $item->getParent eq $item or $depth > 80) { }
167 0 0 wantarray ? :
199 0 0 unless (defined $result)
245 0 0 if $extraTime
250 0 0 if ($authFailed)
255 0 0 if ($failexit or '')
260 0 0 wantarray ? :
271 0 0 if defined $cookie
279 0 0 unless (chmod 0600, "$cookiesFile")
291 0 0 unless (open COOKIEFILE, "<$FAQ::OMatic::Config::metaDir/cookies")
302 0 0 if time - $ctime > $cookieActual
304 0 0 if ($by eq 'id' and $cid eq $match)
308 0 0 if ($by eq 'cookie' and $cookie eq $match)
327 0 0 unless $lockf
329 0 0 unless (open IDFILE, "<$FAQ::OMatic::Config::metaDir/idfile")
350 0 0 unless (open IDFILE, ">$FAQ::OMatic::Config::metaDir/idfile-new")
362 0 0 unless unlink "$FAQ::OMatic::Config::metaDir/idfile"
365 0 0 unless rename "$FAQ::OMatic::Config::metaDir/idfile-new", "$FAQ::OMatic::Config::metaDir/idfile"
368 0 0 unless chmod 0600, "$FAQ::OMatic::Config::metaDir/idfile"
382 0 0 if $id eq 'version' and not $dontHideVersion
385 0 0 unless $lockf
387 0 0 unless (open IDFILE, "<$FAQ::OMatic::Config::metaDir/idfile")
398 0 0 if $idf eq $id
404 0 0 if (defined $idf and $idf eq $id)
413 0 0 if ($crypted =~ /md5\((\S+),(\S+)\)/) { }
446 0 0 if ($auth =~ /^ck/)
449 0 0 if defined $cid
454 0 0 if (($$params{'auth'} || '') eq 'pass' or ($$params{'_none_id'} || '') eq '' and ($$params{'_pass_id'} || '') ne '')
459 0 0 if (FAQ::OMatic::AuthLocal::checkPassword($id, $pass)) { }
477 0 0 if ($$params{'auth'} eq 'none' and defined $$params{'_none_id'})
486 0 0 $$params{'id'} ? :
500 0 0 if $staticErrors{$reason}
502 0 0 if ($reason eq '7')
504 0 0 if (defined $file and $file ne '')
514 0 0 if ($reason =~ /^6/)