-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyboard_test.go
45 lines (34 loc) · 1016 Bytes
/
keyboard_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2023 Joshua Rich <joshua.rich@gmail.com>
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
package gokbd
import (
"testing"
)
// * "go test" does not support cgo, so need to "fake" the test functions.
// * See keyboard_test_cgo.go for actual test code.
func TestOpenKeyboardDevice(t *testing.T) {
testOpenKeyboardDevice(t)
}
func TestOpenKeyboardDevices(t *testing.T) {
testOpenKeyboardDevices(t)
}
func TestKeyboardDevice_isKeyboard(t *testing.T) {
testKeyboardDevice_isKeyboard(t)
}
func TestNewVirtualKeyboard(t *testing.T) {
testNewVirtualKeyboard(t)
}
func TestVirtualKeyboardDevice_TypeKey(t *testing.T) {
testVirtualKeyboardDevice_TypeKey(t)
}
func TestVirtualKeyboardDevice_TypeRune(t *testing.T) {
testVirtualKeyboardDevice_TypeRune(t)
}
func TestVirtualKeyboardDevice_TypeString(t *testing.T) {
testVirtualKeyboardDevice_TypeString(t)
}
func TestVirtualKeyboardDevice_Grab(t *testing.T) {
testVirtualKeyboardDevice_Grab(t)
}