Condition Coverage

blib/lib/IPC/Semaphore/Concurrency.pm
Criterion Covered Total %
condition 2 19 10.5


and 2 conditions

line l !l condition
57 0 0 carp("Can't create ${path}: $!") and return 0
59 0 0 carp("Can't close ${path}: $!") and return 0
66 0 0 carp("Can't create semaphore key: $!") and return undef

and 3 conditions

line !l l&&!r l&&r condition
141 0 0 0 @_ >= 1 and $_[0] =~ /^\d+$/
164 0 0 0 $args{'max'} >= 0 and $ncnt >= $args{'max'}

or 2 conditions

line l !l condition
44 2 0 not -e $$self{'_args'}{'path'} or $$self{'_args'}{'touch'} or return undef
174 0 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
44 2 0 0 not -e $$self{'_args'}{'path'} or $$self{'_args'}{'touch'}