Branch Coverage

blib/lib/Couchbase/Test/Common.pm
Criterion Covered Total %
branch 4 36 11.1


line true false branch
22 4 0 if (defined $msg)
23 0 4 ref $cls ? :
37 0 0 unless ($Mock or $RealServer)
45 0 0 unless ($have_confua)
68 0 0 if ($RealServer)
74 0 0 if (not $bucket_type) { }
0 0 elsif ($bucket_type =~ /mem/) { }
0 0 elsif ($bucket_type =~ /couch/) { }
85 0 0 unless my $bucket = $self->mock->buckets->[0]
86 0 0 if ($bucket_type == 1) { }
0 0 elsif ($bucket == 2) { }
90 0 0 unless not $$_{'type'}
93 0 0 unless ($bucket)
97 0 0 if ($$bucket{'password'})
107 0 0 unless ($MemdPort)
137 0 2 if ($RealServer and not ref $RealServer) { }
142 0 0 if $k =~ /server|bucket|username|password|memd_port/
151 1 0 if ($@ || !$Mock and $$ == $init_pid)