blib/lib/Gerrit/Client/ForEach.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 37 | 48.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
189 | 6 | 35 | 33 | $$self{'git_cloning'}{$gitdir} and not $$event{'_git_cloning'} |
266 | 44 | 12 | 0 | not $workdir and ($WORKER_COUNTER || 0) >= $Gerrit::Client::MAX_FORKS |
406 | 58 | 0 | 0 | $status and not $args{'allownonzero'} |
501 | 0 | 4 | 0 | $cmd and ref $cmd eq 'CODE' |
line | l | !l | condition |
---|---|---|---|
95 | 0 | 0 | $mode ||= '--hard' |
234 | 0 | 0 | $$event{'_have_ref'} ||= 1 |
266 | 3 | 9 | $WORKER_COUNTER || 0 |
326 | 30 | 30 | $args{'onlyif'} || sub { 1; } |
353 | 11 | 47 | $$counter || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
233 | 0 | 0 | 68 | $$event{'_have_ref'} or _have_ref($gitdir, $ref) |
272 | 44 | 12 | 0 | $workdir ||= 'File::Temp'->newdir("$$self{'args'}{'workdir'}/$project/work.XXXXXX") |
586 | 0 | 0 | 0 | $$result{'output'} or $$result{'score'} |
0 | 0 | 0 | $$result{'output'} or $$result{'score'} or $$result{'returned'} | |
626 | 27 | 58 | 0 | $$self{'_dequeue_timer'} ||= &AE::timer(0.1, 0, sub { return unless $weakself; delete $$weakself{'_dequeue_timer'}; $weakself->_dequeue; } ) |