Branch Coverage

blib/lib/LucyX/Remote/ClusterSearcher.pm
Criterion Covered Total %
branch 27 48 56.2


line true false branch
39 0 2 unless &reftype($addrs) eq 'ARRAY'
51 0 7 unless $sock
64 0 7 unless $response
83 0 0 if defined $shards{$$self}
135 0 198 if $n == -1
136 0 198 if $n == 0
139 38 490 unless $shard->{'callback'}
141 46 146 unless vec $rout, $fileno, 1 or vec $wout, $fileno, 1
144 146 298 unless $shard->{'callback'}
152 0 146 if (defined $shard->{'error'}) { }
162 0 56 if @errors
183 0 146 unless (defined $sent)
192 146 0 if ($sent >= length $msg)
196 7 139 if ($shard->{'shutdown'}) { }
217 0 139 if (not defined $r or length $data == 0)
218 0 0 !defined($r) ? :
226 139 0 if (length $shard->{'buf'} >= 4)
242 0 159 if (not defined $r or length $data == 0)
243 0 0 !defined($r) ? :
251 139 20 if (length $shard->{'buf'} >= $shard->{'response_size'})
267 0 5 $query->isa('Lucy::Search::Compiler') ? :
277 2 3 if ($sort_spec) { }
354 0 2 unless $shards{$$self}
357 0 7 unless CORE::close $shard->{'sock'}