Branch Coverage

blib/lib/Net/BGP/Peer.pm
Criterion Covered Total %
branch 46 80 57.5


line true false branch
71 0 0 if ($length >= 16) { }
127 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 =~ /^opaquedata$/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) { }
258 0 413 if @_
265 162 0 unless defined $this->transport->sibling
363 0 0 if defined $opaque_data
436 2 0 if ($timer->{'_callback'} == $callback)
446 0 0 defined $_ ? :
459 2 2 if (defined $this->{'_open_callback'})
468 2 2 if (defined $this->{'_established_callback'})
477 4 4 if (defined $this->{'_keepalive_callback'})
486 4 0 if (defined $this->{'_update_callback'})
495 4 2 if (defined $this->{'_refresh_callback'})
504 8 0 if (defined $this->{'_reset_callback'})
513 2 0 if (defined $this->{'_notification_callback'})
522 4 2 if (defined $this->{'_error_callback'})
539 20 0 if (defined $timer->{'_timer'})
542 4 16 if ($timer->{'_timer'} <= 0)
547 0 20 $timer->{'_timer'} < 0 ? :
548 20 0 if ($min < $min_time)