Branch Coverage

blib/lib/Thread/Semaphore.pm
Criterion Covered Total %
branch 13 18 72.2


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 @_ ? :
70 1 0 @_ ? :
73 1 0 if ($$sema += $inc) > 0