Branch Coverage

blib/lib/cPanel/TaskQueue/Processor.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
51 19 131 unless $a->command eq $b->command
54 40 91 unless @a_args == @b_args
57 82 34 unless $a_args[$i] eq $b_args[$i]
78 0 1 if ($logger) { }
93 22 61 unless $defer_hash and keys %{$defer_hash;}
96 53 42 if exists $$defer_hash{$tag}
105 1 6 unless ref $args eq 'HASH'
106 1 5 unless $$args{'logger'}
107 1 4 unless defined $$args{'cmd'} and length $$args{'cmd'}
109 1 3 unless defined $$args{'name'} and length $$args{'name'}
114 1 2 unless $rc
117 1 1 if ($rc == -1) { }
0 1 elsif ($rc & 127) { }
146 0 53 unless 'HASH' eq ref $args_ref
148 3 50 unless (exists $$args_ref{'code'} and 'CODE' eq ref $$args_ref{'code'})
162 0 2 unless (eval { do { $$self{'proc'}($task->args); 1 } })