Branch Coverage

blib/lib/Thread/Semaphore.pm
Criterion Covered Total %
branch 15 22 68.1


line true false branch
20 3 2 if (@_)
22 3 0 if (not defined $val && &looks_like_number($val) or int $val != $val)
27 1 2 unless defined $val
38 5 2 @_ ? :
49 1 1 @_ ? :
53 1 1 if $ok
61 0 0 @_ ? :
72 0 1 @_ ? :
77 1 0 unless &cond_timedwait(\$$sema, $abs)
86 1 0 @_ ? :
89 1 0 if ($$sema += $inc) > 0