MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / queue_is_bounded

Function queue_is_bounded

crates/virtual-machine/src/devices/keyboard.rs:150–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 }
149
150 #[test]
151 fn queue_is_bounded() {
152 let mut kbd = Keyboard::new();
153 for _ in 0..(KBD_QUEUE_CAP + 50) {
154 kbd.push_event(1, true);
155 }
156 assert_eq!(kbd.pending(), KBD_QUEUE_CAP);
157 }
158
159 #[test]

Callers

nothing calls this directly

Calls 1

push_eventMethod · 0.80

Tested by

no test coverage detected