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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user