Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Format code according to conventions #15590

Merged
merged 1 commit into from
Dec 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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