summaryrefslogtreecommitdiffhomepage
path: root/table/table_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-30 18:56:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-05 17:24:36 +0900
commitbf54d911b23b35b4947dd31a93054855aa237d68 (patch)
treeb4adf743ad198a6f9258d3ea9532608243ee6fc8 /table/table_test.go
parent6b3e4a74e30130909fc6e86a9ce1d5c1b85c95c9 (diff)
table: publicate Table.getDestination()
we use this later from server module Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/table_test.go')
-rw-r--r--table/table_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/table_test.go b/table/table_test.go
index 9f1e6f16..0ece7568 100644
--- a/table/table_test.go
+++ b/table/table_test.go
@@ -32,7 +32,7 @@ func TestTableDeleteDestByNlri(t *testing.T) {
ipv4t.setDestination(tableKey, dest)
}
tableKey := ipv4t.tableKey(pathT[0].GetNlri())
- gdest := ipv4t.getDestination(tableKey)
+ gdest := ipv4t.GetDestination(tableKey)
rdest := ipv4t.deleteDestByNlri(pathT[0].GetNlri())
assert.Equal(t, rdest, gdest)
}
@@ -50,7 +50,7 @@ func TestTableDeleteDest(t *testing.T) {
dest := NewDestination(pathT[0].GetNlri())
ipv4t.setDestination(tableKey, dest)
ipv4t.deleteDest(dest)
- gdest := ipv4t.getDestination(tableKey)
+ gdest := ipv4t.GetDestination(tableKey)
assert.Nil(t, gdest)
}