mirror of
https://github.com/bettercap/bettercap
synced 2025-07-29 19:20:00 -07:00
add test for NewWiFi
This commit is contained in:
parent
74c99d5ea1
commit
74b387bf41
1 changed files with 7 additions and 0 deletions
|
@ -23,3 +23,10 @@ func TestDot11Chan2Freq(t *testing.T) {
|
||||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestNewWiFi(t *testing.T) {
|
||||||
|
exampleWiFi := NewWiFi(buildExampleEndpoint(), func(ap *AccessPoint) {}, func(ap *AccessPoint) {})
|
||||||
|
if exampleWiFi == nil {
|
||||||
|
t.Error("unable to build net wifi struct")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue