Branch Coverage

blib/lib/Proc/JobQueue/Job.pm
Criterion Covered Total %
branch 43 80 53.7


line true false branch
40 0 130 if ($$job{'queue'})
43 0 130 unless ($job->can_command or $job->can_callback)
46 10 120 unless ($$job{'desc'})
47 0 10 if ($$job{'command'}) { }
59 60 125 if $$job{'command'}
60 0 125 if $$job{'generate_command'}
61 120 5 if $job->can('command')
68 0 5 if $$job{'callback'}
69 5 0 if $job->can('startup')
88 120 66 if ($command) { }
0 66 elsif ($$job{'callback'}) { }
66 0 elsif ($job->can('startup')) { }
89 0 120 unless $$job{'desc'}
91 0 120 if (is_remote_host($host))
94 120 0 unless $$job{'run'}
99 0 0 if (ref $$job{'callback'} eq 'Callback') { }
114 241 296 if defined $host
121 185 1347 if defined $jobnum
128 126 0 if ($queue)
143 0 607 if $debug > 6
144 0 607 unless ($$job{'procbg'})
145 0 0 if $debug > 9
148 487 120 if ($$job{'procbg'}->alive)
149 0 487 if $debug > 6
163 60 180 if $$job{'status'} eq 'finished'
165 0 180 unless $$job{'jobnum'}
166 0 180 if $debug > 7
167 0 180 if ($$job{'postcb'})
174 120 60 if ($queue)
175 120 0 if ($$job{'jobnum'}) { }
176 0 120 if $debug > 5
179 0 0 if $debug
182 0 180 if ($exit_code[0]) { }
183 0 0 if $debug > 6
186 0 180 if $debug > 7
188 0 180 if $debug > 9
190 120 60 if $queue
197 0 0 if $debug > 8
204 0 0 unless $$job{'postcb'}
212 0 0 if ($$job{'queue'} and $$job{'queue'}{'on_failure'}) { }