From 077d576becae10b35b84782d4070fbf2f5c0b7c8 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 9 Oct 2023 06:00:08 +0000 Subject: good progress, fixing almost all of the red. in the process of ensuring the data structures are initialized correctly. --- pkg/ipstack/ipstack_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/ipstack/ipstack_test.go (limited to 'pkg/ipstack/ipstack_test.go') 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()) +} -- cgit v1.2.3-70-g09d2