Branch Coverage

blib/lib/Couchbase/MockServer.pm
Criterion Covered Total %
branch 11 30 36.6


line true false branch
39 0 48 if ($sock) { }
46 0 0 if (defined $buf) { }
57 1 0 if (not $got_accept)
74 0 2 if ($type and $type ne 'couchbase' and $type ne 'memcache')
87 2 0 if ($self->nodes)
99 1 1 if ($pid) { }
102 0 1 if (waitpid($pid, 1) > 0)
121 0 2 if ($INSTANCE)
126 0 2 unless (exists $opts{'jarfile'})
131 0 2 unless (-e $file)
148 0 0 unless defined $pid
154 0 0 unless defined $pid
163 0 0 unless $self->harakiri_socket->send($cmd, 0)
171 0 0 unless $self->harakiri_socket->send($cmd, 0)
176 0 1 unless $self->pid