[Core] use keycode_string
in unit tests (#25042)
* tests: use keycode_string feature With a proper keycode to string implementation in qmk there is no need to use the unit tests only implementation anymore. Signed-off-by: Stefan Kerkmann <karlk90@pm.me> * tests: remove keycode_util feature This feature is no longer used as we switched the tests to the keycode string implementation. Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
This commit is contained in:
parent
d603fb0913
commit
c9d62ddc78
15 changed files with 17 additions and 1009 deletions
|
@ -18,10 +18,10 @@
|
|||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include "keycode_util.hpp"
|
||||
extern "C" {
|
||||
#include "keyboard.h"
|
||||
#include "test_matrix.h"
|
||||
#include "keycode_string.h"
|
||||
}
|
||||
|
||||
#include <cassert>
|
||||
|
@ -29,11 +29,11 @@ extern "C" {
|
|||
typedef uint8_t layer_t;
|
||||
|
||||
struct KeymapKey {
|
||||
KeymapKey(layer_t layer, uint8_t col, uint8_t row, uint16_t keycode) : layer(layer), position({.col = col, .row = row}), code(keycode), report_code(keycode), name(get_keycode_identifier_or_default(keycode)) {
|
||||
KeymapKey(layer_t layer, uint8_t col, uint8_t row, uint16_t keycode) : layer(layer), position({.col = col, .row = row}), code(keycode), report_code(keycode), name(get_keycode_string(keycode)) {
|
||||
validate();
|
||||
}
|
||||
|
||||
KeymapKey(layer_t layer, uint8_t col, uint8_t row, uint16_t keycode, uint16_t report_code) : layer(layer), position({.col = col, .row = row}), code(keycode), report_code(report_code), name{get_keycode_identifier_or_default(keycode)} {
|
||||
KeymapKey(layer_t layer, uint8_t col, uint8_t row, uint16_t keycode, uint16_t report_code) : layer(layer), position({.col = col, .row = row}), code(keycode), report_code(report_code), name{get_keycode_string(keycode)} {
|
||||
validate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue