- Move CLI internal headers to `includes/internal/cli/` - Split CLI handler and parsing declarations across dedicated internal headers - Move handler map to `option_map.c` and properly update references - Relocate CLI utility source and test files from `utils` to `parse_utils` - Refactor `cli.h` to only expose the public interface, move internal typedefs/functions out - Update build system: add conditional git commit detection
13 lines
289 B
C
13 lines
289 B
C
#include <criterion/criterion.h>
|
|
#include "cli.h"
|
|
#include "internal/arg_handler.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);
|
|
}
|