Branch Coverage

blib/lib/Net/BGP/Process.pm
Criterion Covered Total %
branch 37 60 61.6


line true false branch
46 2 0 if ($arg =~ /port/i) { }
0 0 elsif ($arg =~ /listenaddr/i) { }
66 2 2 if $peer->is_listener
73 4 0 if (defined $this->{'_peer_list'}{$peer})
91 2 0 unless (defined $SIG{'PIPE'})
97 2 1 if ($peer->is_listener)
109 2 38 unless (defined $last_time)
123 51 25 if ($min < $min_timer)
133 2 38 if scalar keys %{$$this{'_peer_list'};} == 0
139 28 10 if (@ready) { }
143 2 32 if ($ready == $this->{'_listen_socket'}) { }
164 0 10 if ($!{'EBADF'})
167 0 0 unless ($fh->opened)
172 0 0 if ($trans) { }
186 0 2 if defined $sigorig
216 0 2 unless (defined $socket)
221 0 2 unless (defined $rv)
227 0 2 unless (defined $rv)
236 0 2 unless (defined $rv)
241 0 2 unless (defined $rv)
250 0 2 if $@
258 2 0 if (defined $this->{'_listen_socket'})
280 0 2 if (not defined $peer) { }
0 2 elsif (not $peer->is_listener) { }
292 0 2 unless ($peer->is_passive)
301 0 0 if (defined $trans->{'_sibling'})
320 4 76 if (defined $trans_socket and not defined $this_socket) { }
4 72 elsif (defined $this_socket and not defined $trans_socket) { }
66 12 elsif (defined $this_socket and defined $trans_socket) { }
333 4 62 if ($trans->_is_connected and $this->{'_write_fh'}->exists($this_socket))