diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-07-04 11:38:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-07-04 13:27:33 +0200 |
commit | 7c83ee02f22bed1166d3ffed208679fd016bb4b6 (patch) | |
tree | 91f3664c44f2903b57cbea5f81c249b286ea1702 /tests/unit/plugins/typing/test-typing.cpp | |
parent | 8dc75564c2c799fae37014604d3cb085b6fe9699 (diff) | |
download | weechat-7c83ee02f22bed1166d3ffed208679fd016bb4b6.zip |
tests: add tests on typing plugin functions
Diffstat (limited to 'tests/unit/plugins/typing/test-typing.cpp')
-rw-r--r-- | tests/unit/plugins/typing/test-typing.cpp | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/tests/unit/plugins/typing/test-typing.cpp b/tests/unit/plugins/typing/test-typing.cpp new file mode 100644 index 000000000..eb4607e20 --- /dev/null +++ b/tests/unit/plugins/typing/test-typing.cpp @@ -0,0 +1,144 @@ +/* + * test-typing.cpp - test typing functions + * + * Copyright (C) 2021 Sébastien Helleu <flashcode@flashtux.org> + * + * This file is part of WeeChat, the extensible chat client. + * + * WeeChat is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * WeeChat is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with WeeChat. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "CppUTest/TestHarness.h" + +extern "C" +{ +#include "src/plugins/typing/typing.h" +} + +#include "tests/tests.h" + + +TEST_GROUP(Typing) +{ +}; + +/* + * Tests functions: + * typing_send_signal + */ + +TEST(Typing, SendSignal) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_buffer_closing_signal_cb + */ + +TEST(Typing, BufferClosingSignalCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_input_text_changed_signal_cb + */ + +TEST(Typing, InputTextChangedSignalCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_input_text_for_buffer_modifier_cb + */ + +TEST(Typing, InputTextForBufferModifierCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_status_self_status_map_cb + */ + +TEST(Typing, StatusSelfStatusMapCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_status_nicks_status_map_cb + */ + +TEST(Typing, StatusNicksStatusMapCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_status_nicks_hash_map_cb + */ + +TEST(Typing, StatusNicksHashMapCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_timer_cb + */ + +TEST(Typing, TimerCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_typing_set_nick_signal_cb + */ + +TEST(Typing, TypingSetNickSignalCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_typing_reset_buffer_signal_cb + */ + +TEST(Typing, TypingResetBufferSignalCb) +{ + /* TODO: write tests */ +} + +/* + * Tests functions: + * typing_setup_hooks + */ + +TEST(Typing, SetupHooks) +{ + /* TODO: write tests */ +} |