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

Method clear

src/test_helpers.rs:27–30  ·  view source on GitHub ↗

for testing, clear the catcher of everything

(&mut self)

Source from the content-addressed store, hash-verified

25 }
26 // for testing, clear the catcher of everything
27 pub fn clear(&mut self) {
28 self.keys_registered.clear();
29 self.reports.clear();
30 }
31}
32impl USBKeyOut for KeyOutCatcher {
33 fn state(&mut self) -> &mut KeyboardState {

Callers 15

send_registeredMethod · 0.80
pcMethod · 0.80
rcMethod · 0.80
tcMethod · 0.80
pctMethod · 0.80
rctMethod · 0.80
handle_keysMethod · 0.80
test_dvorak_bracketsFunction · 0.80
test_oneshot_shiftFunction · 0.80
test_oneshot_interactionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected