1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

api: add info "plugin_loaded"

This commit is contained in:
Sébastien Helleu
2024-02-19 18:29:21 +01:00
parent f19808cedd
commit a167322d8b
17 changed files with 281 additions and 137 deletions
@@ -663,6 +663,24 @@ TEST(PluginApiInfo, TotpGenerateCb)
"secretpasswordbase32,123456,1540624066,30"));
}
/*
* 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