`count` Go files; each function calls the next file's. */
| 1014 | |
| 1015 | /* `count` Go files; each function calls the next file's. */ |
| 1016 | static 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 | |
| 1031 | TEST(parallel_full_index_keeps_edge_ids_unique) { |
| 1032 | char repo[256]; |
no test coverage detected