summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/validate_test.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-11-20 13:28:25 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-11-20 13:51:27 +0900
commit0564b24aef48f5821e97055d1b1e6eef5b73d14e (patch)
tree73ca853476ed9fa2924ac8cc7483f3dec93ec093 /packet/bgp/validate_test.go
parent19858453d73bf6fb38eedac96e82a23f2d3632e5 (diff)
packet/bgp: Rename snake case to camel case
This patch renames some variable names in snake case (e.g., "last_byte_value") to that in the camel case (e.g., "lastByte") because Go prefers the camel case for variable names. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'packet/bgp/validate_test.go')
-rw-r--r--packet/bgp/validate_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/packet/bgp/validate_test.go b/packet/bgp/validate_test.go
index 5e986300..3bb60639 100644
--- a/packet/bgp/validate_test.go
+++ b/packet/bgp/validate_test.go
@@ -2,9 +2,10 @@ package bgp
import (
"encoding/binary"
- "github.com/stretchr/testify/assert"
"net"
"testing"
+
+ "github.com/stretchr/testify/assert"
)
func bgpupdate() *BGPMessage {
@@ -27,13 +28,13 @@ func bgpupdateV6() *BGPMessage {
NewAsPathParam(2, []uint16{65001}),
}
- mp_nlri := []AddrPrefixInterface{NewIPv6AddrPrefix(100,
+ prefixes := []AddrPrefixInterface{NewIPv6AddrPrefix(100,
"fe80:1234:1234:5667:8967:af12:8912:1023")}
p := []PathAttributeInterface{
NewPathAttributeOrigin(1),
NewPathAttributeAsPath(aspath),
- NewPathAttributeMpReachNLRI("1023::", mp_nlri),
+ NewPathAttributeMpReachNLRI("1023::", prefixes),
}
return NewBGPUpdateMessage(nil, p, nil)
}