diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-08-27 14:32:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-08-27 14:32:18 +0900 |
commit | 8e348d6f184db9cd802cb81bf7b4a9dbb338fb74 (patch) | |
tree | 4808e34905b15a9b2a0601bb17860e48cc20346d /internal/pkg/table/table_test.go | |
parent | e25e9373dd4dc95b5d224a33ae65cc4806d06e48 (diff) |
table: delete unused deleteDestByNlri()
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/table/table_test.go')
-rw-r--r-- | internal/pkg/table/table_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/pkg/table/table_test.go b/internal/pkg/table/table_test.go index 1e91aa6b..e0f1f3cf 100644 --- a/internal/pkg/table/table_test.go +++ b/internal/pkg/table/table_test.go @@ -24,19 +24,6 @@ import ( "github.com/stretchr/testify/assert" ) -func TestTableDeleteDestByNlri(t *testing.T) { - peerT := TableCreatePeer() - pathT := TableCreatePath(peerT) - ipv4t := NewTable(bgp.RF_IPv4_UC) - for _, path := range pathT { - dest := NewDestination(path.GetNlri(), 0) - ipv4t.setDestination(dest) - } - gdest := ipv4t.GetDestination(pathT[0].GetNlri()) - rdest := ipv4t.deleteDestByNlri(pathT[0].GetNlri()) - assert.Equal(t, rdest, gdest) -} - func TestTableDeleteDest(t *testing.T) { peerT := TableCreatePeer() pathT := TableCreatePath(peerT) |