mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 15:46:59 -07:00
18 lines
334 B
Go
18 lines
334 B
Go
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)
|
|
}
|
|
}
|