Branch Coverage

blib/lib/TheSchwartz/Job.pm
Criterion Covered Total %
branch 12 52 23.0


line true false branch
47 3 3 unless @arg == 2
58 8 1 if (my $arg = $param{'arg'})
59 2 6 if (ref $arg eq 'SCALAR') { }
2 4 elsif (not ref $arg) { }
78 9 0 if (@_)
83 0 9 unless ($job->{'__funcname'})
87 0 0 unless my $funcname = $client->funcid_to_name($driver, $handle->dsn_hashed, $job->funcid)
98 0 0 if (@_)
106 0 0 unless (exists $job->{'__driver'})
128 0 0 $driver->dbd->can_delete_with_limit ? :
147 0 0 unless my $secs = $class->keep_exit_status_for
163 0 0 if (rand() < $clean_thres)
165 0 0 $driver->dbd->can_delete_with_limit ? :
181 0 0 if (@_)
189 0 0 if (@_)
203 0 0 if ($job->did_something)
214 0 0 if ($job->did_something)
225 0 0 if ($job->did_something)
232 0 0 if ($run_after) { }
251 0 0 if ($job->did_something)
277 0 0 if ($_retry) { }
279 0 0 if (my $delay = $class->retry_delay($failures))
296 0 0 if ($job->did_something)
325 0 0 if ($TheSchwartz::Job::_T_REPLACE_WITH_FAIL)
344 2 0 if ($magic and $magic->{'major'} and $magic->{'major'} >= 2 and $magic->{'major'} <= 5) { }
350 0 2 if ($@)