mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
tests: split hook tests into multiple files (issue #865)
This commit is contained in:
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* test-hook-url.cpp - test hook url functions
|
||||
*
|
||||
* Copyright (C) 2024 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "src/core/weechat.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(HookUrl)
|
||||
{
|
||||
};
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_get_description
|
||||
*/
|
||||
|
||||
TEST(HookUrl, GetDescription)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_hashtable_map_cb
|
||||
*/
|
||||
|
||||
TEST(HookUrl, HashtableMapCb)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_run_callback
|
||||
*/
|
||||
|
||||
TEST(HookUrl, RunCallback)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_thread_cleanup
|
||||
*/
|
||||
|
||||
TEST(HookUrl, ThreadCleanup)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_transfer_thread
|
||||
*/
|
||||
|
||||
TEST(HookUrl, TransferThread)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_timer_cb
|
||||
*/
|
||||
|
||||
TEST(HookUrl, TimerCb)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_transfer
|
||||
*/
|
||||
|
||||
TEST(HookUrl, Transfer)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url
|
||||
*/
|
||||
|
||||
TEST(HookUrl, Url)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_free_data
|
||||
*/
|
||||
|
||||
TEST(HookUrl, FreeData)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_add_to_infolist
|
||||
*/
|
||||
|
||||
TEST(HookUrl, AddToInfolist)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_url_print_log
|
||||
*/
|
||||
|
||||
TEST(HookUrl, PrintLog)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
Reference in New Issue
Block a user