summaryrefslogtreecommitdiffhomepage
path: root/table/destination_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-24 00:00:13 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 22:15:04 -0800
commita207c90fe4544caa95d30ffaec5defee78ef6fd3 (patch)
treeb3fec0bb0f8f395edc5cfce915311e13f9bacda4 /table/destination_test.go
parent16b40fd1526ea662bde7e49a0c6c8301bd0b7c82 (diff)
table: expose (*Destination).getRouteFamily()
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/destination_test.go')
-rw-r--r--table/destination_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/destination_test.go b/table/destination_test.go
index a606cff6..f5556175 100644
--- a/table/destination_test.go
+++ b/table/destination_test.go
@@ -40,13 +40,13 @@ func TestDestinationNewIPv6(t *testing.T) {
func TestDestinationSetRouteFamily(t *testing.T) {
dd := &Destination{}
dd.setRouteFamily(bgp.RF_IPv4_UC)
- rf := dd.getRouteFamily()
+ rf := dd.Family()
assert.Equal(t, rf, bgp.RF_IPv4_UC)
}
func TestDestinationGetRouteFamily(t *testing.T) {
dd := &Destination{}
dd.setRouteFamily(bgp.RF_IPv6_UC)
- rf := dd.getRouteFamily()
+ rf := dd.Family()
assert.Equal(t, rf, bgp.RF_IPv6_UC)
}
func TestDestinationSetNlri(t *testing.T) {