MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / write_id_fixture

Function write_id_fixture

tests/test_parallel.c:1016–1029  ·  view source on GitHub ↗

`count` Go files; each function calls the next file's. */

Source from the content-addressed store, hash-verified

1014
1015/* `count` Go files; each function calls the next file's. */
1016static bool write_id_fixture(const char *repo, int count) {
1017 char path[512];
1018 char source[256];
1019 for (int i = 0; i < count; i++) {
1020 snprintf(path, sizeof(path), "%s/f%02d.go", repo, i);
1021 snprintf(source, sizeof(source),
1022 "package main\n\nfunc F%02d() int {\n\treturn F%02d() + 1\n}\n", i,
1023 (i + 1) % count);
1024 if (th_write_file(path, source) != 0) {
1025 return false;
1026 }
1027 }
1028 return true;
1029}
1030
1031TEST(parallel_full_index_keeps_edge_ids_unique) {
1032 char repo[256];

Callers 1

test_parallel.cFile · 0.85

Calls 1

th_write_fileFunction · 0.85

Tested by

no test coverage detected