| blib/lib/Serengeti/NotificationCenter.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 22 | 45.4 |
| line | true | false | branch |
|---|---|---|---|
| 12 | 3 | 1 | if $DefaultCenter |
| 31 | 2 | 0 | unless blessed $self |
| 33 | 0 | 2 | unless $args{'selector'} |
| 36 | 0 | 2 | if ($for and not ref $for eq 'CODE' || ref $for eq '') |
| 52 | 1 | 0 | unless blessed $self |
| 56 | 0 | 2 | if $for and $for ne $notification |
| 57 | 0 | 2 | if $from and $from != refaddr $sender |
| 58 | 0 | 2 | if $target and $target != refaddr $observer |
| 64 | 0 | 2 | if $@ |
| 72 | 0 | 0 | unless blessed $self |
| 74 | 0 | 0 | if defined $$_[0] |