Branch Coverage

blib/lib/Net/SIP/Dispatcher/Eventloop.pm
Criterion Covered Total %
branch 41 64 64.0


line true false branch
58 0 161 unless ref $callback
59 0 161 unless defined(my $fn = fileno $fd)
61 0 161 if $Net::SIP::Dispatcher::Eventloop::DEBUG
64 0 161 if $Net::SIP::Dispatcher::Eventloop::DEBUG
77 0 155 unless defined(my $fn = $fd && fileno $fd)
78 120 35 if (not @_) { }
80 0 120 if $Net::SIP::Dispatcher::Eventloop::DEBUG
86 120 0 if $self->{'just_dropped'}
91 0 35 if $Net::SIP::Dispatcher::Eventloop::DEBUG
96 35 0 if $self->{'just_dropped'}
99 0 155 if $Net::SIP::Dispatcher::Eventloop::DEBUG
115 141 0 if $when < 31536000
151 97 41 $timeout ? :
156 5553 2509 defined $to ? :
174 3689 0 if ($t->{'expire'} and $t->{'repeat'})
184 8062 0 if (@$timer)
186 8040 22 if not defined $to or $to > $next_timer
188 8062 0 defined $to ? :
190 114 7948 if (grep {${$_;};} @stop)
198 0 7948 if $Net::SIP::Dispatcher::Eventloop::DEBUG
201 0 7948 if $Net::SIP::Dispatcher::Eventloop::DEBUG
203 0 7948 if ($nfound < 0)
204 0 0 if $! == 4
212 20738 10281 unless $fds->[$i]
214 15834 4728 unless vec $vec[$rw], $i, 1
216 0 4728 if $self->{'just_dropped'}[$i][$rw]
217 0 4728 if $Net::SIP::Dispatcher::Eventloop::DEBUG
222 5480 2468 if (defined $timeout) { }
223 0 5480 unless $timeout
247 3 138 unless ($name)
251 0 9 unless my(undef, undef, undef, $sub) = caller $i
252 6 3 if $sub =~ /::add_timer$/