| 167 | |
| 168 | #[cfg(test)] |
| 169 | pub 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)] |
| 184 | impl Checks for Keyboard<'_, KeyOutCatcher> { |
nothing calls this directly
no outgoing calls
no test coverage detected