aboutsummaryrefslogtreecommitdiff
path: root/pkg/ipstack/ipstack_test.go
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-09 06:00:08 +0000
committersotech117 <michael_foiani@brown.edu>2023-10-09 06:00:08 +0000
commit077d576becae10b35b84782d4070fbf2f5c0b7c8 (patch)
tree26a7f4c4f0219cf87ea70a004550bf2736a29321 /pkg/ipstack/ipstack_test.go
parent4966c054b3f462f6eaf24591c4ab1a945e72bb6f (diff)
good progress, fixing almost all of the red. in the process of ensuring the data structures are initialized correctly.
Diffstat (limited to 'pkg/ipstack/ipstack_test.go')
-rw-r--r--pkg/ipstack/ipstack_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/ipstack/ipstack_test.go b/pkg/ipstack/ipstack_test.go
new file mode 100644
index 0000000..5530b9d
--- /dev/null
+++ b/pkg/ipstack/ipstack_test.go
@@ -0,0 +1,20 @@
+package ipstack
+
+import (
+ "fmt"
+ "testing"
+)
+
+func TestInitialize(t *testing.T) {
+ lnxFilePath := "../../doc-example/r2.lnx"
+ err := Initialize(lnxFilePath)
+ if err != nil {
+ t.Error(err)
+ }
+ fmt.Println("TestInitialize successful")
+ PrintInterfaces()
+ fmt.Println("Interfaces^^")
+ PrintNeighbors()
+ fmt.Println("Neighbors^^")
+ fmt.Println(SprintRoutingTable())
+}