13 lines
299 B
C
13 lines
299 B
C
#include <criterion/criterion.h>
|
|
#include "cli.h"
|
|
#include "internal/cli/arg_handler.h"
|
|
|
|
/* Test 1: exit code test */
|
|
Test(handle_version, exit_code)
|
|
{
|
|
t_ping_config config = {0};
|
|
const char *arg = "";
|
|
int ret = cli_handle_version(arg, &config);
|
|
|
|
cr_assert_eq(ret, CLI_EXIT_SUCCESS);
|
|
}
|