summaryrefslogtreecommitdiffhomepage
path: root/table/path_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-26 08:54:56 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-04 20:47:52 +0900
commitef65699c8c8bfc2b0177a645ea9e12df097285ab (patch)
tree34932112eb289eb2d114d96f1366f736abf4af98 /table/path_test.go
parent3febf8129ee052adf013b6f8559e9cb950f3cdd5 (diff)
server: remove nexthop field from Path struct and make Path.setNexthop public
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path_test.go')
-rw-r--r--table/path_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/table/path_test.go b/table/path_test.go
index d7d6a660..3d1e47c9 100644
--- a/table/path_test.go
+++ b/table/path_test.go
@@ -5,7 +5,6 @@ import (
//"fmt"
"github.com/osrg/gobgp/packet"
"github.com/stretchr/testify/assert"
- "net"
"testing"
"time"
)
@@ -79,22 +78,6 @@ func TestPathGetSource(t *testing.T) {
assert.Equal(t, r_pr, pr)
}
-func TestPathSetNexthop(t *testing.T) {
- pd := &PathDefault{}
- ip := net.ParseIP("192.168.0.1")
- pd.setNexthop(ip)
- nh := pd.GetNexthop()
- assert.Equal(t, nh, ip)
-}
-
-func TestPathgetNexthop(t *testing.T) {
- pd := &PathDefault{}
- ip := net.ParseIP("192.168.0.2")
- pd.setNexthop(ip)
- nh := pd.GetNexthop()
- assert.Equal(t, nh, ip)
-}
-
func TestPathSetWithdraw(t *testing.T) {
pd := &PathDefault{}
wd := true