summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-04-15 05:24:58 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-04-15 05:24:58 +0000
commit3f6876df0b16043412972e7fd92377226bc9c89d (patch)
treed8b1e2a41a0dca1720929807cc8161568e7c3565 /table/table_manager_test.go
parenta1114dc7bb6dcb165c6494799be94b5d10fe5b17 (diff)
api: add a method to convert internal structs to protobuf structs
- add ToApiStruct() for convertion of internal structs to protobuf structs to avoid ugly convertion by json.Marshal() && json.Unmarshal() - move grpc server code under /server instead of /api - update proto file to include more detailed path information Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager_test.go')
-rw-r--r--table/table_manager_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go
index 8e800c8c..91887cfb 100644
--- a/table/table_manager_test.go
+++ b/table/table_manager_test.go
@@ -2053,7 +2053,7 @@ func TestProcessBGPUpdate_multiple_nlri_ipv4(t *testing.T) {
// check table
table := tm.Tables[bgp.RF_IPv4_UC]
- assert.Equal(t, 13, len(table.getDestinations()))
+ assert.Equal(t, 13, len(table.GetDestinations()))
}
@@ -2200,7 +2200,7 @@ func TestProcessBGPUpdate_multiple_nlri_ipv6(t *testing.T) {
// check table
table := tm.Tables[bgp.RF_IPv6_UC]
- assert.Equal(t, 13, len(table.getDestinations()))
+ assert.Equal(t, 13, len(table.GetDestinations()))
}