diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-01-30 20:36:49 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-01-31 19:28:26 +0100 |
commit | 13aa23b62af4df3e7f10687b76fe8c04efa2a598 (patch) | |
tree | b2874af2444d1f8798d3ebde258e05faddebcf3c /src/nvim/tui/input.c | |
parent | 42999a8d645ccf880222f0192671b8ce01bde361 (diff) | |
download | rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.tar.gz rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.tar.bz2 rneovim-13aa23b62af4df3e7f10687b76fe8c04efa2a598.zip |
refactor(tests): run unittests using main nvim binary in interpreter mode
This allows us to get rid of the separate "nvim-test" target
Diffstat (limited to 'src/nvim/tui/input.c')
-rw-r--r-- | src/nvim/tui/input.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c index 2cb39ab26b..733aa25f03 100644 --- a/src/nvim/tui/input.c +++ b/src/nvim/tui/input.c @@ -117,14 +117,6 @@ static const struct kitty_key_map_entry { static Map(KittyKey, cstr_t) kitty_key_map = MAP_INIT; -#ifndef UNIT_TESTING -typedef enum { - kIncomplete = -1, - kNotApplicable = 0, - kComplete = 1, -} HandleState; -#endif - #ifdef INCLUDE_GENERATED_DECLARATIONS # include "tui/input.c.generated.h" #endif @@ -584,7 +576,7 @@ static void set_bg(char *bgvalue) // ignored in the calculations. // // [1] https://en.wikipedia.org/wiki/Luma_%28video%29 -static HandleState handle_background_color(TermInput *input) +HandleState handle_background_color(TermInput *input) { if (input->waiting_for_bg_response <= 0) { return kNotApplicable; @@ -669,12 +661,6 @@ static HandleState handle_background_color(TermInput *input) } return kComplete; } -#ifdef UNIT_TESTING -HandleState ut_handle_background_color(TermInput *input) -{ - return handle_background_color(input); -} -#endif static void handle_raw_buffer(TermInput *input, bool force) { |