Branch Coverage

blib/lib/App/Dochazka/REST/Model/Employee.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
289 0 0 $timestamp ? :
292 0 0 if ref $return_value
310 0 0 $timestamp ? :
313 0 0 if ref $return_value
330 0 0 unless defined $self->{'sync'}
359 0 0 unless $self->{'eid'}
361 0 0 unless defined $self->{'sync'}
409 0 0 unless $self->nick =~ /\S+/u
412 0 0 unless $App::Dochazka::REST::Model::Employee::site->DOCHAZKA_LDAP
413 0 0 unless $self->sync
420 0 0 if grep {$nick eq $_;} @{$App::Dochazka::REST::Model::Employee::site->DOCHAZKA_SYSTEM_USERS;}
429 0 0 unless $ldap
430 0 0 unless $ldap
437 0 0 unless $value
445 0 0 unless $count < 1
556 0 0 if (ref $status->payload ne 'ARRAY')
596 0 0 $arg =~ /[[(].*,.*[])]/u ? :
605 0 0 unless $status->ok
670 0 0 $arg =~ /[[(].*,.*[])]/u ? :
679 0 0 unless $status->ok
709 0 0 unless $self->eid
712 0 0 unless $self->nick =~ /\S+/u
719 0 0 unless $status->ok
746 0 0 unless $self->eid
753 0 0 unless $status->ok
787 0 0 if nick_exists($dbix_conn, $nick)
788 0 0 unless $App::Dochazka::REST::Model::Employee::site->DOCHAZKA_LDAP_AUTOCREATE
796 0 0 unless $status->ok
800 0 0 if ($status->not_ok)
810 0 0 unless ($priv =~ /^(inactive)|(active)$/u)
826 0 0 if ($status->not_ok)
874 0 0 if ($priv eq 'all') { }
885 0 0 unless $status->ok
911 0 0 if ($priv eq 'total')
919 0 0 unless $priv =~ /^(passerby)|(inactive)|(active)|(admin)$/iu