Branch Coverage

blib/lib/Mojo/Rx/Subscription.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
24 5 11 if (not defined $item) { }
11 0 elsif (ref $item ne '') { }
27 2 9 if (&reftype($item) eq 'CODE') { }
0 9 elsif (defined &blessed($item) and $item->isa('Mojo::Rx::Subscription')) { }
7 2 elsif (&reftype($item) eq 'ARRAY') { }
0 2 elsif (&reftype($item) eq 'REF') { }
0 2 elsif (&reftype($item) eq 'SCALAR') { }
2 0 elsif (&reftype($item) eq 'HASH' and not defined &blessed($item)) { }
31 0 0 unless $item eq $self
58 6 0 if (grep(defined($_), @{$$self{'subscribers'};}) == 1)
64 5 0 if defined $orig_fn
76 2 5 if (not $self->{'closed'}) { }
86 1 6 if $self->{'closed'}++
90 6 0 if defined $subscriber