blib/lib/Gearman/Objects.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 38 | 48 | 79.1 |
line | true | false | branch |
---|---|---|---|
37 | 10 | 12 | unless (ref $self) |
44 | 5 | 17 | if $opts{'job_servers'} |
64 | 1 | 8 | if @_ |
66 | 8 | 1 | wantarray ? : |
101 | 7 | 4 | if ($ref) { } |
102 | 3 | 4 | if ($ref eq 'ARRAY') { } |
4 | 0 | elsif ($ref eq 'HASH') { } | |
118 | 5 | 6 | if (ref $i) { } |
2 | 4 | elsif (not $i =~ /:/) { } | |
141 | 2 | 4 | defined $prefix ? : |
178 | 0 | 3 | unless (ref $js) |
190 | 2 | 1 | if ($js->{'use_ssl'}) |
193 | 6 | 0 | unless $js->{$_} |
198 | 2 | 1 | if $js->{'socket_cb'} |
201 | 2 | 1 | unless ($s) |
204 | 0 | 0 | $js->{'use_ssl'} ? : |
0 | 2 | if $self->debug | |
219 | 0 | 0 | unless setsockopt $sock, 6, 1, "\cA\000\000\000" |
231 | 3 | 2 | if ($sock) |
237 | 1 | 4 | $delete ? : |
246 | 0 | 65 | unless $name |
247 | 48 | 17 | if (@_) |
260 | 6 | 4 | ref $js eq 'HASH' ? : |
272 | 0 | 1 | $i == -1 || $i > $#s ? : |