[Enhancement] Improvements for debounce test coverage + bug fixes for sym_defer_g and sym_eager_pr (#21667)
Co-authored-by: Nebuleon <2391500+Nebuleon@users.noreply.github.com>
This commit is contained in:
parent
dd94877ec6
commit
960d6e0d7d
15 changed files with 458 additions and 23 deletions
|
@ -238,3 +238,21 @@ TEST_F(DebounceTest, OneKeyDelayedScan4) {
|
|||
time_jumps_ = true;
|
||||
runEvents();
|
||||
}
|
||||
|
||||
TEST_F(DebounceTest, AsyncTickOneKeyShort1) {
|
||||
addEvents({
|
||||
/* Time, Inputs, Outputs */
|
||||
{0, {{0, 1, DOWN}}, {}},
|
||||
|
||||
{5, {}, {{0, 1, DOWN}}},
|
||||
/* 0ms delay (fast scan rate) */
|
||||
{5, {{0, 1, UP}}, {}},
|
||||
|
||||
{10, {}, {{0, 1, UP}}},
|
||||
});
|
||||
/*
|
||||
* Debounce implementations should never read the timer more than once per invocation
|
||||
*/
|
||||
async_time_jumps_ = DEBOUNCE;
|
||||
runEvents();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue