Condition Coverage

blib/lib/Store/CouchDB.pm
Criterion Covered Total %
condition 3 75 4.0


and 3 conditions

line !l l&&!r l&&r condition
120 0 0 0 exists $$data{'rev'} and $$data{'rev'}
191 0 0 0 ref $data eq 'HASH' and $$data{'include_docs'}
207 0 0 0 exists $$data{'doc'} and ref $$data{'doc'} eq 'HASH'
215 0 0 0 exists $$data{'doc'}{'_id'} and defined $$data{'doc'}{'_id'}
279 0 0 0 ref $data eq 'HASH' and exists $$data{'doc'}
0 0 0 ref $data eq 'HASH' and exists $$data{'doc'} and ref $$data{'doc'} eq 'HASH'
291 0 0 0 exists $$data{'doc'}{'_id'} and defined $$data{'doc'}{'_id'}
584 0 0 0 exists $$_del{'deleted'} and $$_del{'deleted'} eq 'true' || $$_del{'deleted'} == 1
640 0 0 0 not $rev and $id
731 0 0 0 ref $data eq 'HASH' and exists $$data{'dbname'}
0 0 0 ref $data eq 'HASH' and exists $$data{'dbname'} and defined $$data{'dbname'}
763 0 0 0 $compat and not ref $value
833 1 0 0 $self->user and $self->pass
852 0 0 0 ref $c eq 'HASH' and not defined $ct
871 1 0 0 $self->method eq 'HEAD' and $res->header('ETag')

or 2 conditions

line l !l condition
651 0 0 $$data{'content_type'} ||= 'text/plain'
868 0 1 $ct || 'application/json'
911 0 0 $$head{shift @tail} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
122 0 0 0 $rev or $params
243 0 0 0 $$data{'id'} || $$data{'_id'}
244 0 0 0 $$data{'rev'} || $$data{'_rev'}
386 0 0 0 $$doc{'key'} or $c
396 0 0 0 $$doc{'key'} or $c
584 0 0 0 $$_del{'deleted'} eq 'true' || $$_del{'deleted'} == 1
637 0 0 0 $$data{'id'} || $$data{'doc'}{'_id'}
638 0 0 0 $$data{'rev'} || $$data{'doc'}{'_rev'}