diff --git a/network/oui_test.go b/network/oui_test.go new file mode 100644 index 00000000..1973d81a --- /dev/null +++ b/network/oui_test.go @@ -0,0 +1,18 @@ +package network + +import "testing" + +func TestOuiVar(t *testing.T) { + if len(oui) <= 0 { + t.Error("unable to find any oui infromation") + } +} + +func TestOuiLookup(t *testing.T) { + exampleMac := "e0:0c:7f:XX:XX:XX" + exp := "Nintendo Co." + got := OuiLookup(exampleMac) + if got != exp { + t.Fatalf("expected '%s', got '%s'", exp, got) + } +}