mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
add test for OuiLookup
This commit is contained in:
parent
90676d0289
commit
29ec4edc63
1 changed files with 9 additions and 0 deletions
|
@ -7,3 +7,12 @@ func TestOuiVar(t *testing.T) {
|
||||||
t.Error("unable to find any oui infromation")
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue