Branch Coverage

blib/lib/Net/BGP/Peer.pm
Criterion Covered Total %
branch 45 76 59.2


line true false branch
71 0 0 if ($length >= 16) { }
126 9 45 if ($arg =~ /^start$/i or $arg =~ /^connectretrytime$/i or $arg =~ /^keepalivetime$/i or $arg =~ /^holdtime$/i) { }
5 40 elsif ($arg =~ /^thisid$/i) { }
5 35 elsif ($arg =~ /^thisas$/i) { }
5 30 elsif ($arg =~ /^peerid$/i) { }
5 25 elsif ($arg =~ /^peeras$/i) { }
4 21 elsif ($arg =~ /^peerport$/i) { }
5 16 elsif ($arg =~ /^listen$/i) { }
5 11 elsif ($arg =~ /^passive$/i) { }
0 11 elsif ($arg =~ /^refreshcallback$/i) { }
0 11 elsif ($arg =~ /^refresh$/i) { }
4 7 elsif ($arg =~ /^announcerefresh$/i) { }
0 7 elsif ($arg =~ /^supportcapabilities$/i) { }
4 3 elsif ($arg =~ /^supportmbgp$/i) { }
3 0 elsif ($arg =~ /^supportas4$/i) { }
0 0 elsif ($arg =~ /^opencallback$/i) { }
0 0 elsif ($arg =~ /^establishedcallback$/i) { }
0 0 elsif ($arg =~ /^keepalivecallback$/i) { }
0 0 elsif ($arg =~ /^updatecallback$/i) { }
0 0 elsif ($arg =~ /^resetcallback$/i) { }
0 0 elsif ($arg =~ /^notificationcallback$/i) { }
0 0 elsif ($arg =~ /^errorcallback$/i) { }
254 0 413 if @_
261 162 0 unless defined $this->transport->sibling
424 2 0 if ($$timer{'_callback'} == $callback)
434 0 0 defined $_ ? :
447 2 2 if (defined $$this{'_open_callback'})
456 2 2 if (defined $$this{'_established_callback'})
465 4 4 if (defined $$this{'_keepalive_callback'})
474 4 0 if (defined $$this{'_update_callback'})
483 4 2 if (defined $$this{'_refresh_callback'})
492 8 0 if (defined $$this{'_reset_callback'})
501 2 0 if (defined $$this{'_notification_callback'})
510 4 2 if (defined $$this{'_error_callback'})
527 20 0 if (defined $$timer{'_timer'})
530 4 16 if ($$timer{'_timer'} <= 0)
535 0 20 $$timer{'_timer'} < 0 ? :
536 20 0 if ($min < $min_time)