diff options
| author | Nick Brassel <nick@tzarc.org> | 2021-11-23 09:54:04 +1100 |
|---|---|---|
| committer | Nick Brassel <nick@tzarc.org> | 2021-11-23 09:54:04 +1100 |
| commit | 7746aefe94cc4cd492bfafdef73d95d073f0603b (patch) | |
| tree | 42c6daae724c74f7e21422f3fec4dc384c0e1f5d /tests/test_common/keyboard_report_util.cpp | |
| parent | b6054c0206609f3755f71d819643644d250288b0 (diff) | |
| download | qmk_firmware-7746aefe94cc4cd492bfafdef73d95d073f0603b.tar.gz qmk_firmware-7746aefe94cc4cd492bfafdef73d95d073f0603b.zip | |
Revert "[Tests] Increase QMK test coverage (#13789)"
This reverts commit b6054c0206609f3755f71d819643644d250288b0.
Diffstat (limited to 'tests/test_common/keyboard_report_util.cpp')
| -rw-r--r-- | tests/test_common/keyboard_report_util.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/test_common/keyboard_report_util.cpp b/tests/test_common/keyboard_report_util.cpp index e148c76be..f73cf239e 100644 --- a/tests/test_common/keyboard_report_util.cpp +++ b/tests/test_common/keyboard_report_util.cpp | |||
| @@ -44,21 +44,16 @@ bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) { | |||
| 44 | return lhs.mods == rhs.mods && lhskeys == rhskeys; | 44 | return lhs.mods == rhs.mods && lhskeys == rhskeys; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | std::ostream& operator<<(std::ostream& stream, const report_keyboard_t& report) { | 47 | std::ostream& operator<<(std::ostream& stream, const report_keyboard_t& value) { |
| 48 | auto keys = get_keys(report); | 48 | stream << "Keyboard report:" << std::endl; |
| 49 | 49 | stream << "Mods: " << (uint32_t)value.mods << std::endl; | |
| 50 | stream << "Keys: "; | ||
| 50 | // TODO: This should probably print friendly names for the keys | 51 | // TODO: This should probably print friendly names for the keys |
| 51 | stream << "Keyboard Report: Mods (" << (uint32_t)report.mods << ") Keys ("; | 52 | for (uint32_t k : get_keys(value)) { |
| 52 | 53 | stream << k << " "; | |
| 53 | for (auto key = keys.cbegin(); key != keys.cend();) { | ||
| 54 | stream << +(*key); | ||
| 55 | key++; | ||
| 56 | if (key != keys.cend()) { | ||
| 57 | stream << ","; | ||
| 58 | } | ||
| 59 | } | 54 | } |
| 60 | 55 | stream << std::endl; | |
| 61 | return stream << ")" << std::endl; | 56 | return stream; |
| 62 | } | 57 | } |
| 63 | 58 | ||
| 64 | KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) { | 59 | KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) { |
