mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
tests: split hook tests into multiple files (issue #865)
This commit is contained in:
@@ -0,0 +1,193 @@
|
||||
/*
|
||||
* test-hook-process.cpp - test hook process 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(HookProcess)
|
||||
{
|
||||
};
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_get_description
|
||||
*/
|
||||
|
||||
TEST(HookProcess, GetDescription)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_hashtable
|
||||
*/
|
||||
|
||||
TEST(HookProcess, Hashtable)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process
|
||||
*/
|
||||
|
||||
TEST(HookProcess, Process)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_child
|
||||
*/
|
||||
|
||||
TEST(HookProcess, Child)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_send_buffers
|
||||
*/
|
||||
|
||||
TEST(HookProcess, SendBuffers)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_add_to_buffer
|
||||
*/
|
||||
|
||||
TEST(HookProcess, AddToBuffer)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_child_read
|
||||
*/
|
||||
|
||||
TEST(HookProcess, ChildRead)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_child_read_stdout_cb
|
||||
*/
|
||||
|
||||
TEST(HookProcess, ChildReadStdoutCb)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_child_read_stderr_cb
|
||||
*/
|
||||
|
||||
TEST(HookProcess, ChildReadStderrCb)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_child_read_until_eof
|
||||
*/
|
||||
|
||||
TEST(HookProcess, ChildReadUntilEof)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_timer_cb
|
||||
*/
|
||||
|
||||
TEST(HookProcess, TimerCb)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_run
|
||||
*/
|
||||
|
||||
TEST(HookProcess, Run)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_exec
|
||||
*/
|
||||
|
||||
TEST(HookProcess, Exec)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_free_data
|
||||
*/
|
||||
|
||||
TEST(HookProcess, FreeData)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_add_to_infolist
|
||||
*/
|
||||
|
||||
TEST(HookProcess, AddToInfolist)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* hook_process_print_log
|
||||
*/
|
||||
|
||||
TEST(HookProcess, PrintLog)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
Reference in New Issue
Block a user