Branch Coverage

blib/lib/Test/Consul.pm
Criterion Covered Total %
branch 4 66 6.0


line true false branch
34 0 0 if $current_port > $end_port
35 0 0 if check_port($current_port, 'tcp')
36 0 0 if $udp_too and check_port($current_port, 'udp')
159 0 0 unless (&blessed($self))
167 0 0 unless ($self->version >= 6001)
190 0 0 if ($self->version >= 7000)
197 0 0 if ($self->version >= 1000005)
201 0 0 if ($self->enable_acls)
202 0 0 if ($self->version >= 1004000)
212 0 0 if (defined $self->enable_remote_exec)
213 0 0 $self->enable_remote_exec ? :
217 0 0 if ($self->has_datadir) { }
237 0 0 unless (defined $pid)
240 0 0 unless ($pid)
250 0 0 if $res->{'success'} and $res->{'content'} =~ /^"[0-9\.]+:[0-9]+"$/
253 0 0 unless ($res->{'success'})
258 0 0 unless $self->has_datadir
262 0 0 if $is_class_method
268 0 0 unless $self->_has_pid
274 0 0 if waitpid($pid, 1) > 0
296 0 0 unless ($res->{'success'})
309 0 0 unless ($res->{'success'})
316 0 4 if $bin_searched_for
318 0 4 if defined $binpath and -x $binpath
326 0 4 unless 'main'->can('plan')
331 0 4 if defined $class->found_bin
338 0 0 if defined $version
341 0 0 if ($version and $version =~ /v(\d+)\.(\d+)\.(\d+)/) { }
352 0 0 unless defined $minver
355 0 0 unless 'main'->can('plan')
364 0 0 if (defined $maxver) { }
365 0 0 if $minver <= $version and $maxver > $version
369 0 0 if $minver <= $version