Skip to content

Commit 38d4027

Browse files
committed
test: add model support test
1 parent a9f3fbb commit 38d4027

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

device/model_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package device_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/mishamyrt/nuga-lib/device"
7+
)
8+
9+
func TestIsSupported(t *testing.T) {
10+
t.Parallel()
11+
tests := []struct {
12+
name string
13+
expect bool
14+
}{
15+
{"UnknownModel", false},
16+
{"Halo65", true},
17+
{"Halo75", true},
18+
{"Halo96", true},
19+
}
20+
21+
for _, tt := range tests {
22+
t.Run(tt.name, func(t *testing.T) {
23+
if device.IsSupported(tt.name) != tt.expect {
24+
t.Errorf("Expected %v, got %v", tt.expect, device.IsSupported(tt.name))
25+
}
26+
})
27+
}
28+
}

0 commit comments

Comments
 (0)