Branch Coverage

blib/lib/Net/BGP/Process.pm
Criterion Covered Total %
branch 35 54 64.8


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 0 if ($peer->is_listener)
109 2 38 unless (defined $last_time)
123 40 36 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'}) { }
169 0 2 if defined $sigorig
199 0 2 unless (defined $socket)
204 0 2 unless (defined $rv)
210 0 2 unless (defined $rv)
219 0 2 unless (defined $rv)
224 0 2 unless (defined $rv)
233 0 2 if $@
241 2 0 if (defined $$this{'_listen_socket'})
263 0 2 if (not defined $peer) { }
0 2 elsif (not $peer->is_listener) { }
275 0 2 unless ($peer->is_passive)
284 0 0 if (defined $$trans{'_sibling'})
303 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) { }
316 4 62 if ($trans->_is_connected and $$this{'_write_fh'}->exists($this_socket))