From 29ec4edc633cc167b91413f99a876f744bf6375e Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Tue, 1 May 2018 15:47:33 -0400 Subject: [PATCH] add test for OuiLookup --- network/oui_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/network/oui_test.go b/network/oui_test.go index e54e6720..1973d81a 100644 --- a/network/oui_test.go +++ b/network/oui_test.go @@ -7,3 +7,12 @@ func TestOuiVar(t *testing.T) { 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) + } +}