summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-19 18:29:21 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-19 18:29:21 +0100
commita167322d8b572948a0c2cf74139c8e6c1e1dc45c (patch)
tree86343bed330b78e89b16e91c20ed969f2cc8b6da /tests/unit
parentf19808cedd5749066f6da0e1c289533f14f83c82 (diff)
downloadweechat-a167322d8b572948a0c2cf74139c8e6c1e1dc45c.zip
api: add info "plugin_loaded"
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/test-plugin-api-info.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit/plugins/test-plugin-api-info.cpp b/tests/unit/plugins/test-plugin-api-info.cpp
index 0915bc0a6..0d8d84073 100644
--- a/tests/unit/plugins/test-plugin-api-info.cpp
+++ b/tests/unit/plugins/test-plugin-api-info.cpp
@@ -665,6 +665,24 @@ TEST(PluginApiInfo, TotpGenerateCb)
/*
* Tests functions:
+ * plugin_api_info_plugin_loaded_cb
+ */
+
+TEST(PluginApiInfo, PluginLoadedCb)
+{
+ char *str;
+
+ POINTERS_EQUAL(NULL, hook_info_get (NULL, "plugin_loaded", NULL));
+ POINTERS_EQUAL(NULL, hook_info_get (NULL, "plugin_loaded", ""));
+
+ POINTERS_EQUAL(NULL, hook_info_get (NULL, "plugin_loaded", "xxx"));
+
+ WEE_TEST_STR("1", hook_info_get (NULL, "plugin_loaded", "alias"));
+ WEE_TEST_STR("1", hook_info_get (NULL, "plugin_loaded", "irc"));
+}
+
+/*
+ * Tests functions:
* plugin_api_info_hashtable_secured_data_cb
*/