Branch Coverage

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


line true false branch
58 0 166 unless ref $callback
59 0 166 unless defined(my $fn = fileno $fd)
61 0 166 if $Net::SIP::Dispatcher::Eventloop::DEBUG
64 0 166 if $Net::SIP::Dispatcher::Eventloop::DEBUG
77 0 160 unless defined(my $fn = $fd && fileno $fd)
78 126 34 if (not @_) { }
80 0 126 if $Net::SIP::Dispatcher::Eventloop::DEBUG
86 126 0 if $self->{'just_dropped'}
91 0 34 if $Net::SIP::Dispatcher::Eventloop::DEBUG
96 34 0 if $self->{'just_dropped'}
99 0 160 if $Net::SIP::Dispatcher::Eventloop::DEBUG
115 149 0 if $when < 31536000
151 103 45 $timeout ? :
156 5813 2624 defined $to ? :
174 3792 0 if ($t->{'expire'} and $t->{'repeat'})
184 8437 0 if (@$timer)
186 8412 25 if not defined $to or $to > $next_timer
188 8437 0 defined $to ? :
190 122 8315 if (grep {${$_;};} @stop)
198 0 8315 if $Net::SIP::Dispatcher::Eventloop::DEBUG
201 0 8315 if $Net::SIP::Dispatcher::Eventloop::DEBUG
203 0 8315 if ($nfound < 0)
204 0 0 if $! == 4
212 22636 11142 unless $fds->[$i]
214 17152 5132 unless vec $vec[$rw], $i, 1
216 2 5130 if $self->{'just_dropped'}[$i][$rw]
217 0 5130 if $Net::SIP::Dispatcher::Eventloop::DEBUG
222 5736 2579 if (defined $timeout) { }
223 0 5736 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$/