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

Method new

src/test_helpers.rs:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17impl KeyOutCatcher {
18 pub fn new() -> KeyOutCatcher {
19 KeyOutCatcher {
20 keys_registered: Vec::new(),
21 reports: Vec::new(),
22 state: KeyboardState::new(),
23 later: Vec::new(),
24 }
25 }
26 // for testing, clear the catcher of everything
27 pub fn clear(&mut self) {
28 self.keys_registered.clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected