Branch Coverage

lib/CallBackery/User.pm
Criterion Covered Total %
branch 1 20 5.0


line true false branch
150 0 0 $self->userInfo->{'cbuser_id'} ? :
209 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'})
220 0 0 unless ($userData)
225 0 0 if ($userData->{'cbuser_password'} and $password and &hmac_sha1_sum($password) eq $userData->{'cbuser_password'})
245 0 0 if (($self->userId // "") eq "__ROOT")
251 0 0 $db->matchData('cbuserright', {'cbuser', $userId, 'cbright', $rightId}) ? :
278 2 0 if (${^GLOBAL_PHASE} ne "DESTRUCT")
282 0 0 if ($self and ref $self->log)
283 0 0 unless $self->{'prototype'}
286 0 0 unless ref $self and $self->{'prototype'}