| lib/AnyEvent/Tools/Mutex.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 20 | 70.0 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 0 | 7 | unless 'CODE' eq ref $cb |
| 23 | 6 | 1 | unless defined wantarray |
| 24 | 0 | 1 | unless keys %{$$self{'cache'};} |
| 26 | 1 | 0 | if $self and $self->_delete_client($name) |
| 48 | 0 | 7 | unless exists $$self{'cache'}{$name} |
| 50 | 5 | 2 | if ($idx == $#{$$self{'queue'};}) |
| 57 | 0 | 2 | unless $_ > $idx |
| 66 | 5 | 9 | if $self->is_locked |
| 67 | 3 | 6 | unless @{$$self{'queue'};} |
| 72 | 6 | 0 | if ($self) |