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

Interface Checks

src/test_helpers.rs:169–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168#[cfg(test)]
169pub trait Checks {
170 /// press check
171 fn pc(&mut self, key: impl AcceptsKeycode, should: &[&[KeyCode]]);
172 /// release and check
173 fn rc(&mut self, key: impl AcceptsKeycode, should: &[&[KeyCode]]);
174 /// timeout and check
175 fn tc(&mut self, ms_since_last: u16, should: &[&[KeyCode]]);
176 ///
177 /// press check with defined ms_since
178 fn pct(&mut self, key: impl AcceptsKeycode, ms_since_last: u16, should: &[&[KeyCode]]);
179 /// release check with defined ms_since
180 fn rct(&mut self, key: impl AcceptsKeycode, ms_since_last: u16, should: &[&[KeyCode]]);
181}
182
183#[cfg(test)]
184impl Checks for Keyboard<'_, KeyOutCatcher> {

Callers

nothing calls this directly

Implementers 1

test_helpers.rssrc/test_helpers.rs

Calls

no outgoing calls

Tested by

no test coverage detected