mirror of
https://github.com/MengMengCode/VoCat.git
synced 2026-08-17 21:33:43 +08:00
* build: add QMI dependency and license attribution * feat: add native OpenStick 410 modem support --------- Co-authored-by: w0x41en <[email protected]>
25 lines
448 B
Go
25 lines
448 B
Go
package modem
|
|
|
|
import "testing"
|
|
|
|
func TestIsNativeWWANATPath(t *testing.T) {
|
|
for _, path := range []string{
|
|
"/dev/wwan0at0",
|
|
"/dev/wwan12at3",
|
|
} {
|
|
if !isNativeWWANATPath(path) {
|
|
t.Errorf("isNativeWWANATPath(%q) = false", path)
|
|
}
|
|
}
|
|
for _, path := range []string{
|
|
"/dev/wwan0qmi0",
|
|
"/dev/ttyUSB2",
|
|
"/tmp/wwan-at",
|
|
"/dev/wwanat0",
|
|
} {
|
|
if isNativeWWANATPath(path) {
|
|
t.Errorf("isNativeWWANATPath(%q) = true", path)
|
|
}
|
|
}
|
|
}
|