Branch Coverage

blib/lib/Test/Consul.pm
Criterion Covered Total %
branch 4 72 5.5


line true false branch
34 0 0 if $current_port > $end_port
35 0 0 if check_port($current_port, "tcp")
36 0 0 unless can_bind("127.0.0.1", $current_port, "tcp")
37 0 0 if $udp_too and check_port($current_port, "udp")
38 0 0 if $udp_too and not can_bind("127.0.0.1", $current_port, "udp")
161 0 0 unless (&blessed($self))
169 0 0 unless ($self->version >= 6001)
192 0 0 if ($self->version >= 7000)
199 0 0 if ($self->version >= 1000005)
205 0 0 if ($self->version >= 1014000)
209 0 0 if ($self->enable_acls)
210 0 0 if ($self->version >= 1004000)
220 0 0 if (defined $self->enable_remote_exec)
221 0 0 $self->enable_remote_exec ? :
225 0 0 if ($self->has_datadir) { }
245 0 0 unless (defined $pid)
248 0 0 unless ($pid)
258 0 0 if $res->{'success'} and $res->{'content'} =~ /^"[0-9\.]+:[0-9]+"$/
261 0 0 unless ($res->{'success'})
266 0 0 unless $self->has_datadir
270 0 0 if $is_class_method
276 0 0 unless $self->_has_pid
282 0 0 if waitpid($pid, 1) > 0
304 0 0 unless ($res->{'success'})
317 0 0 unless ($res->{'success'})
324 0 4 if $bin_searched_for
326 0 4 if defined $binpath and -x $binpath
334 0 4 unless "main"->can("plan")
339 0 4 if defined $class->found_bin
346 0 0 if defined $version
349 0 0 if ($version and $version =~ /v(\d+)\.(\d+)\.(\d+)/) { }
360 0 0 unless defined $minver
363 0 0 unless "main"->can("plan")
372 0 0 if (defined $maxver) { }
373 0 0 if $minver <= $version and $maxver > $version
377 0 0 if $minver <= $version