Branch Coverage

blib/lib/Net/SIP/Dispatcher/Eventloop.pm
Criterion Covered Total %
branch 42 64 65.6


line true false branch
58 0 165 unless ref $callback
59 0 165 unless defined(my $fn = fileno $fd)
61 0 165 if $Net::SIP::Dispatcher::Eventloop::DEBUG
64 0 165 if $Net::SIP::Dispatcher::Eventloop::DEBUG
77 0 159 unless defined(my $fn = $fd && fileno $fd)
78 126 33 if (not @_) { }
80 0 126 if $Net::SIP::Dispatcher::Eventloop::DEBUG
86 126 0 if $self->{'just_dropped'}
91 0 33 if $Net::SIP::Dispatcher::Eventloop::DEBUG
96 33 0 if $self->{'just_dropped'}
99 0 159 if $Net::SIP::Dispatcher::Eventloop::DEBUG
115 149 0 if $when < 31536000
151 103 45 $timeout ? :
156 4957 2451 defined $to ? :
174 3797 0 if ($t->{'expire'} and $t->{'repeat'})
184 7408 0 if (@$timer)
186 7381 27 if not defined $to or $to > $next_timer
188 7408 0 defined $to ? :
190 122 7286 if (grep {${$_;};} @stop)
198 0 7286 if $Net::SIP::Dispatcher::Eventloop::DEBUG
201 0 7286 if $Net::SIP::Dispatcher::Eventloop::DEBUG
203 0 7286 if ($nfound < 0)
204 0 0 if $! == 4
212 20688 10114 unless $fds->[$i]
214 15561 4667 unless vec $vec[$rw], $i, 1
216 2 4665 if $self->{'just_dropped'}[$i][$rw]
217 0 4665 if $Net::SIP::Dispatcher::Eventloop::DEBUG
222 4880 2406 if (defined $timeout) { }
223 0 4880 unless $timeout
247 3 146 unless ($name)
251 0 9 unless my(undef, undef, undef, $sub) = caller $i
252 6 3 if $sub =~ /::add_timer$/