net-tools/tests/cli/handlers/test_handle_help.c
lohhiiccc f6af6473db test(cli/handlers): add unit tests for CLI handlers
- Add unit tests for handlers
- Update sources.mk to remove test_parse.c from test sources
- Fix in handle_size to set packet_size instead of count
2026-03-03 11:26:58 +01:00

12 lines
255 B
C

#include <criterion/criterion.h>
#include "cli.h"
/* Test 1: exit code test */
Test(handle_help, exit_code)
{
t_ping_config config = {0};
const char *arg = "";
int ret = cli_handle_help(arg, &config);
cr_assert_eq(ret, CLI_EXIT_SUCCESS);
}