mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Merge pull request #256 from picatz/test-network-oui
Add basic network oui test
This commit is contained in:
commit
d91f8e0a75
1 changed files with 18 additions and 0 deletions
18
network/oui_test.go
Normal file
18
network/oui_test.go
Normal file
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue