MCPcopy Create free account
hub / github.com/emberian/evdev / get_test_device

Function get_test_device

tests/common/mod.rs:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17pub fn get_test_device() -> std::io::Result<(Device, VirtualDevice)> {
18 let (name, output) = get_device()?;
19
20 let mut input = Device::open(&name)?;
21
22 input.grab()?;
23
24 Ok((input, output))
25}
26
27pub fn get_device() -> std::io::Result<(PathBuf, VirtualDevice)> {
28 let mut keys: AttributeSet<KeyCode> = AttributeSet::new();

Callers 4

test_get_key_stateFunction · 0.85
test_compensate_keysFunction · 0.85

Calls 2

get_deviceFunction · 0.85
grabMethod · 0.45

Tested by 4

test_get_key_stateFunction · 0.68
test_compensate_keysFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…