Branch Coverage

blib/lib/Mojo/CouchDB/DB.pm
Criterion Covered Total %
branch 34 56 60.7


line true false branch
85 0 2 unless $auth
86 0 2 unless exists $url->path->parts->[0]
139 3 4 $loc && $loc ne '' ? :
143 2 5 $body ? :
149 0 4 if $r->json and exists $r->json->{'error'}
150 1 6 unless $r->is_success
162 0 0 $loc && $loc ne '' ? :
166 0 0 if ($body)
171 0 0 if exists $r->res->json->{'error'}
181 0 0 if exists $r->res->json->{'error'}
182 0 0 unless $r->is_success
195 2 2 unless $sc
197 2 0 unless &reftype($sc)
199 0 0 unless &reftype($sc) eq "HASH"
210 1 3 unless $id
219 2 2 unless $idx
220 1 1 unless &reftype($idx)
222 1 0 unless &reftype($idx) eq "HASH"
232 2 4 unless $doc
233 1 3 unless &reftype($doc)
235 1 2 unless &reftype($doc) eq "HASH"
237 0 2 unless defined $doc
246 2 2 unless defined $docs
247 1 1 unless &reftype($docs)
250 1 0 unless &reftype($docs) eq "ARRAY"
261 2 2 unless $query
262 2 0 unless &reftype($query)
264 0 0 unless $query and &reftype($query) eq "HASH"