MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / testKeyCodeInfo

Function testKeyCodeInfo

src/key_codes.rs:398–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396mod test {
397 #[test]
398 fn testKeyCodeInfo() {
399 use super::{KeyCodeInfo, KeyCode};
400 assert!(KeyCode::A.to_u32().is_usb_keycode());
401 assert!(KeyCode::Application.to_u32().is_usb_keycode());
402 assert!(KeyCode::Power.to_u32().is_usb_keycode());
403 assert!(!KeyCode::Power.to_u32().is_private_keycode());
404
405 }
406}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected