1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 17:45:41 +02:00

tests: add tests on modifier hook

This commit is contained in:
Sébastien Helleu
2018-08-16 18:27:04 +02:00
parent 6ca2408c99
commit ca90f28beb
5 changed files with 400 additions and 0 deletions
+4
View File
@@ -31,6 +31,10 @@ Bug fixes::
* api: fix memory leak in function string_split
* scripts: fix duplicated lines in output of script eval (python, perl, ruby, lua and guile)
Tests::
* unit: add tests on line and hook functions
[[v2.2]]
== Version 2.2 (2018-07-14)
+1
View File
@@ -29,6 +29,7 @@ set(LIB_WEECHAT_UNIT_TESTS_SRC
unit/core/test-eval.cpp
unit/core/test-hashtable.cpp
unit/core/test-hdata.cpp
unit/core/test-hook.cpp
unit/core/test-infolist.cpp
unit/core/test-list.cpp
unit/core/test-string.cpp
+1
View File
@@ -26,6 +26,7 @@ lib_weechat_unit_tests_a_SOURCES = unit/test-plugins.cpp \
unit/core/test-eval.cpp \
unit/core/test-hashtable.cpp \
unit/core/test-hdata.cpp \
unit/core/test-hook.cpp \
unit/core/test-infolist.cpp \
unit/core/test-list.cpp \
unit/core/test-string.cpp \
+5
View File
@@ -59,6 +59,7 @@ IMPORT_TEST_GROUP(CoreArraylist);
IMPORT_TEST_GROUP(CoreEval);
IMPORT_TEST_GROUP(CoreHashtable);
IMPORT_TEST_GROUP(CoreHdata);
IMPORT_TEST_GROUP(CoreHook);
IMPORT_TEST_GROUP(CoreInfolist);
IMPORT_TEST_GROUP(CoreList);
IMPORT_TEST_GROUP(CoreString);
@@ -105,6 +106,10 @@ test_print_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
(void) displayed;
(void) highlight;
/* keep only messages displayed on core buffer */
if (strcmp (gui_buffer_get_string (buffer, "full_name"), "core.weechat") != 0)
return WEECHAT_RC_OK;
printf ("%s%s%s\n", /* with color: "\33[34m%s%s%s\33[0m\n" */
(prefix && prefix[0]) ? prefix : "",
(prefix && prefix[0]) ? " " : "",
File diff suppressed because it is too large Load Diff