Condition Coverage

blib/lib/Net/DAV/LockManager.pm
Criterion Covered Total %
condition 38 39 97.4


and 3 conditions

line !l l&&!r l&&r condition
43 8 1 51 $self->can_modify($req) and not $self->_get_lock($path)
108 11 1 4 $lock and $lock->depth eq 'infinity'
175 129 7 25 $lock and $lock->depth eq 'infinity'
220 19 180 20 defined $req->{'user'} and not $req->{'user'} =~ /^[0-9a-z_.][-a-z0-9_.]*$/i
225 195 2 2 defined $req->{'scope'} and $Net::DAV::Lock::DEFAULT_SCOPE ne $req->{'scope'}
229 183 10 4 defined $req->{'depth'} and '0' ne $req->{'depth'}
193 2 2 defined $req->{'depth'} and '0' ne $req->{'depth'} and 'infinity' ne $req->{'depth'}
233 189 3 3 defined $req->{'timeout'} and $req->{'timeout'} =~ /\D/

or 3 conditions

line l !l&&r !l&&!r condition
28 18 24 58 $self->_get_lock($resource) || $self->_get_indirect_lock($resource)
66 1 1 0 $req->{'timeout'} || $Net::DAV::Lock::DEFAULT_LOCK_TIMEOUT
91 2 1 2 $self->_get_lock($path) || $self->_get_indirect_lock($path)
219 214 5 13 $req->{'path'} =~ m[^/] or $req->{'path'} =~ s[^https?://[^/]+/][/]
238 41 11 1 not ref $req->{'token'} or 'ARRAY' eq ref $req->{'token'}