Branch Coverage

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


line true false branch
117 0 0 if $status->ok
139 0 0 if $status->ok
171 0 0 if $status->ok
172 0 0 if $status->ok and $status->payload eq 'empty'
250 0 0 if ($rv == 1) { }
0 0 elsif ($rv eq '0E0') { }
0 0 elsif ($rv > 1) { }
0 0 elsif ($rv == -1) { }
282 0 0 unless (defined $errmsg)
286 0 0 unless ($App::Dochazka::REST::Model::Shared::site->DOCHAZKA_SQL_TRACE)
290 0 0 if (not defined $status)
298 0 0 unless (defined $status)
381 0 0 if ($rv >= 1) { }
0 0 elsif ($rv eq '0E0') { }
0 0 elsif ($rv == -1) { }
402 0 0 unless (defined $errmsg)
406 0 0 if (not defined $status)
414 0 0 unless (defined $status)
434 0 0 unless $json_str
475 0 0 if (exists $ARGS{'nick'})
476 0 0 $t eq 'priv' ? :
480 0 0 if exists $ARGS{'eid'}
483 0 0 if (exists $ARGS{'eid'})
484 0 0 $t eq 'priv' ? :
488 0 0 if exists $ARGS{'nick'}
493 0 0 $ARGS{'tsrange'} ? :
498 0 0 unless $sk and $sql and $tsr
512 0 0 if defined $status
515 0 0 $counter ? :
576 0 0 if $status
578 0 0 if defined $hr
632 0 0 if defined $status
637 0 0 $counter ? :
682 0 0 if (not defined $status or $status->level eq 'CRIT')
686 0 0 if $status->ok
710 0 0 unless grep {$table eq $_;} 'activities', 'employees', 'intervals', 'locks', 'privhistory', 'schedhistory', 'schedintvls', 'schedules', 'tempintvls'
772 0 0 if ($ts) { }
774 0 0 if ($st eq 'priv') { }
0 0 elsif ($st eq 'schedule') { }
782 0 0 if ($st eq 'priv') { }
0 0 elsif ($st eq 'schedule') { }
802 0 0 if $status
832 0 0 scalar @results ? :
834 0 0 $count ? :
841 0 0 unless $status
884 0 0 if $status
911 0 0 unless $status->ok
913 0 0 unless defined $lower and defined $upper and $lower ne 'infinity' and $upper ne 'infinity'
941 0 0 if ($status->ok)
971 0 0 if ($status->ok)
994 0 0 unless $status->ok
1014 0 0 unless $status->ok