Evaluation of codebase by human #210

Merged
TapTap merged 7 commits from evaluation-of-codebase-by-human into dev 2026-08-11 21:24:38 +02:00
Showing only changes of commit 2e00fc31f2 - Show all commits
+50 -14
View File
@@ -209,20 +209,56 @@ static void test_parse_args_unknown_option() {
/* Parsed-but-unimplemented options must fail instead of being silently accepted. */ /* Parsed-but-unimplemented options must fail instead of being silently accepted. */
static void test_parse_args_rejects_unimplemented_options() { static void test_parse_args_rejects_unimplemented_options() {
static const char* const options[] = { static const char* const options[] = {"-q",
"-q", "--quiet", "--silent", "--queue-size", "--quiet",
"-H", "--hard-links", "-A", "--acls", "--silent",
"-X", "--xattrs", "-D", "--devices", "--queue-size",
"-i", "--itemize-changes", "--out-format", "--info", "-H",
"--debug", "--list-only", "-h", "--human-readable", "--hard-links",
"-u", "--update", "--append", "--append-verify", "-A",
"--delete-excluded", "--delete-after", "--max-delete", "--filter", "--acls",
"--files-from", "--cvs-exclude", "--prune-empty-dirs", "-R", "-X",
"--relative", "-e", "--rsh", "--rsync-path", "--xattrs",
"--temp-dir", "--compare-dest", "--copy-dest", "--link-dest", "-D",
"--delete-before", "--address", "--bind-address", "--ipv6", "--devices",
"--ipv4", "--daemon", "--config", "--server", "-i",
"--checksum", "--compress-choice"}; "--itemize-changes",
"--out-format",
"--info",
"--debug",
"--list-only",
"-h",
"--human-readable",
"-u",
"--update",
"--append",
"--append-verify",
"--delete-excluded",
"--delete-after",
"--max-delete",
"--filter",
"--files-from",
"--cvs-exclude",
"--prune-empty-dirs",
"-R",
"--relative",
"-e",
"--rsh",
"--rsync-path",
"--temp-dir",
"--compare-dest",
"--copy-dest",
"--link-dest",
"--delete-before",
"--address",
"--bind-address",
"--ipv6",
"--ipv4",
"--daemon",
"--config",
"--server",
"--checksum",
"--compress-choice"};
for (size_t i = 0; i < sizeof(options) / sizeof(options[0]); i++) { for (size_t i = 0; i < sizeof(options) / sizeof(options[0]); i++) {
Config* cfg = config_create(); Config* cfg = config_create();