Branch Coverage

blib/lib/ElasticSearch/TestServer.pm
Criterion Covered Total %
branch 2 54 3.7


line true false branch
61 0 1 ref $_[0] eq 'HASH' ? :
64 1 0 unless my $home = delete $params{'home'}
80 0 0 unless my $plugin = $ElasticSearch::Transport::Transport{$transport}
82 0 0 unless eval "require $plugin"
83 0 0 if $plugin->can('_make_sync')
86 0 0 unless $params{'config'}
100 0 0 if ('IO::Socket::INET'->new($_))
126 0 0 unless ($config{'path'}{'data'})
138 0 0 if (ref $old_SIGINT eq 'CODE')
151 0 0 unless defined(my $pid = fork)
152 0 0 if ($pid == 0) { }
153 0 0 if setsid() == -1
161 0 0 unless $pid
165 0 0 if $int_caught
172 0 0 if ('IO::Socket::INET'->new($servers[0])) { }
180 0 0 if $timeout == 0
182 0 0 if (@servers)
197 0 0 unless ($es)
205 0 0 if eval { do { @{$es->refresh_servers;} == $instances } }
206 0 0 unless --$attempts
220 0 0 if (@_)
230 0 0 if (@_)
243 0 0 unless defined $PIDs
244 0 0 unless defined $dir
246 0 0 unless $PIDs
251 0 0 if wait == -1
252 0 0 if (defined $dir)