mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
16 lines
340 B
Go
16 lines
340 B
Go
package network
|
|
|
|
import "testing"
|
|
|
|
func buildExampleWiFi() *WiFi {
|
|
return NewWiFi(buildExampleEndpoint(), func(ap *AccessPoint) {}, func(ap *AccessPoint) {})
|
|
}
|
|
|
|
func TestDot11Freq2Chan(t *testing.T) {
|
|
exampleFreq := 2472
|
|
exp := 13
|
|
got := Dot11Freq2Chan(exampleFreq)
|
|
if got != exp {
|
|
t.Fatalf("expected '%v', got '%v'", exp, got)
|
|
}
|
|
}
|