Branch Coverage

blib/lib/Test/Consul.pm
Criterion Covered Total %
branch 4 64 6.2


line true false branch
33 0 0 if $current_port > $end_port
34 0 0 if check_port($current_port, 'tcp')
35 0 0 if $udp_too and check_port($current_port, 'udp')
157 0 0 unless (&blessed($self))
165 0 0 unless ($self->version >= 6001)
188 0 0 if ($self->version >= 7000)
195 0 0 if ($self->version >= 1000005)
199 0 0 if ($self->enable_acls)
200 0 0 if ($self->version >= 1004000)
210 0 0 if (defined $self->enable_remote_exec)
211 0 0 $self->enable_remote_exec ? :
215 0 0 if ($self->has_datadir) { }
235 0 0 unless (defined $pid)
238 0 0 unless ($pid)
248 0 0 if $res->{'success'} and $res->{'content'} =~ /^"[0-9\.]+:[0-9]+"$/
251 0 0 unless ($res->{'success'})
256 0 0 unless $self->has_datadir
260 0 0 if $is_class_method
266 0 0 unless $self->_has_pid
272 0 0 if waitpid($pid, 1) > 0
294 0 0 unless ($res->{'success'})
301 0 3 if $bin_searched_for
303 0 3 if defined $binpath and -x $binpath
311 0 3 unless 'main'->can('plan')
316 0 3 if defined $class->found_bin
323 0 0 if defined $version
326 0 0 if ($version and $version =~ /v(\d+)\.(\d+)\.(\d+)/) { }
337 0 0 unless defined $minver
340 0 0 unless 'main'->can('plan')
349 0 0 if (defined $maxver) { }
350 0 0 if $minver <= $version and $maxver > $version
354 0 0 if $minver <= $version