Branch Coverage

lib/CallBackery/User.pm
Criterion Covered Total %
branch 1 14 7.1


line true false branch
157 0 0 $self->userInfo->{'cbuser_id'} ? :
216 0 0 if ($cfg->{'sesame_pass'} and $cfg->{'sesame_user'} and $login and $password and $login eq $cfg->{'sesame_user'} and &hmac_sha1_sum($password) eq $cfg->{'sesame_pass'})
227 0 0 unless ($userData)
232 0 0 if ($userData->{'cbuser_password'} and $password and &hmac_sha1_sum($password) eq $userData->{'cbuser_password'})
252 0 0 if (($self->userId // "") eq "__ROOT")
258 0 0 $db->matchData('cbuserright', {'cbuser', $userId, 'cbright', $rightId}) ? :
283 0 1 if ${^GLOBAL_PHASE} eq "DESTRUCT"