Skip to content

Commit

Permalink
Format code according to conventions (#15590)
Browse files Browse the repository at this point in the history
  • Loading branch information
qmk-bot authored Dec 27, 2021
1 parent ed43450 commit eadfcb9
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions quantum/debounce/tests/sym_defer_pr_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include "debounce_test_common.h"

TEST_F(DebounceTest, OneKeyShort1) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

{5, {}, {{0, 1, DOWN}}},
Expand All @@ -32,7 +33,8 @@ TEST_F(DebounceTest, OneKeyShort1) {
}

TEST_F(DebounceTest, OneKeyShort2) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

{5, {}, {{0, 1, DOWN}}},
Expand All @@ -45,7 +47,8 @@ TEST_F(DebounceTest, OneKeyShort2) {
}

TEST_F(DebounceTest, OneKeyShort3) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

{5, {}, {{0, 1, DOWN}}},
Expand All @@ -58,7 +61,8 @@ TEST_F(DebounceTest, OneKeyShort3) {
}

TEST_F(DebounceTest, OneKeyTooQuick1) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},
/* Release key exactly on the debounce time */
{5, {{0, 1, UP}}, {}},
Expand All @@ -67,7 +71,8 @@ TEST_F(DebounceTest, OneKeyTooQuick1) {
}

TEST_F(DebounceTest, OneKeyTooQuick2) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

{5, {}, {{0, 1, DOWN}}},
Expand All @@ -80,7 +85,8 @@ TEST_F(DebounceTest, OneKeyTooQuick2) {
}

TEST_F(DebounceTest, OneKeyBouncing1) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},
{1, {{0, 1, UP}}, {}},
{2, {{0, 1, DOWN}}, {}},
Expand All @@ -94,7 +100,8 @@ TEST_F(DebounceTest, OneKeyBouncing1) {
}

TEST_F(DebounceTest, OneKeyBouncing2) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},
{5, {}, {{0, 1, DOWN}}},
{6, {{0, 1, UP}}, {}},
Expand All @@ -108,7 +115,8 @@ TEST_F(DebounceTest, OneKeyBouncing2) {
}

TEST_F(DebounceTest, OneKeyLong) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

{5, {}, {{0, 1, DOWN}}},
Expand All @@ -125,7 +133,8 @@ TEST_F(DebounceTest, OneKeyLong) {
}

TEST_F(DebounceTest, TwoKeysShort) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},
{1, {{0, 2, DOWN}}, {}},

Expand All @@ -140,7 +149,8 @@ TEST_F(DebounceTest, TwoKeysShort) {
}

TEST_F(DebounceTest, TwoKeysSimultaneous1) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}, {0, 2, DOWN}}, {}},

{5, {}, {{0, 1, DOWN}, {0, 2, DOWN}}},
Expand All @@ -152,7 +162,8 @@ TEST_F(DebounceTest, TwoKeysSimultaneous1) {
}

TEST_F(DebounceTest, TwoKeysSimultaneous2) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},
{1, {{0, 2, DOWN}}, {}},

Expand All @@ -167,7 +178,8 @@ TEST_F(DebounceTest, TwoKeysSimultaneous2) {
}

TEST_F(DebounceTest, OneKeyDelayedScan1) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

/* Processing is very late */
Expand All @@ -182,7 +194,8 @@ TEST_F(DebounceTest, OneKeyDelayedScan1) {
}

TEST_F(DebounceTest, OneKeyDelayedScan2) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

/* Processing is very late */
Expand All @@ -197,7 +210,8 @@ TEST_F(DebounceTest, OneKeyDelayedScan2) {
}

TEST_F(DebounceTest, OneKeyDelayedScan3) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

/* Release key before debounce expires */
Expand All @@ -208,7 +222,8 @@ TEST_F(DebounceTest, OneKeyDelayedScan3) {
}

TEST_F(DebounceTest, OneKeyDelayedScan4) {
addEvents({ /* Time, Inputs, Outputs */
addEvents({
/* Time, Inputs, Outputs */
{0, {{0, 1, DOWN}}, {}},

/* Processing is a bit late */
Expand Down

0 comments on commit eadfcb9

Please sign in to comment.