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

Function index_parallel_fixture

tests/test_lang_contract.c:1735–1751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1733enum { PARALLEL_PAD_FILES = 52 };
1734
1735static cbm_store_t *index_parallel_fixture(LangProj *lp, const LangFile *meaningful, int n_mean) {
1736 static char pad_name[PARALLEL_PAD_FILES][40];
1737 static char pad_body[PARALLEL_PAD_FILES][64];
1738 LangFile files[PARALLEL_PAD_FILES + 16] = {0}; /* zero-init: GCC -Werror=maybe-uninitialized */
1739 int n = 0;
1740 for (int i = 0; i < n_mean; i++) {
1741 files[n++] = meaningful[i];
1742 }
1743 for (int i = 0; i < PARALLEL_PAD_FILES; i++) {
1744 snprintf(pad_name[i], sizeof(pad_name[i]), "pad/pad_%02d.py", i);
1745 snprintf(pad_body[i], sizeof(pad_body[i]), "def pad_%02d():\n return %d\n", i, i);
1746 files[n].name = pad_name[i];
1747 files[n].content = pad_body[i];
1748 n++;
1749 }
1750 return lang_index_files(lp, files, n);
1751}
1752
1753/* GRAPHQL_CALLS + GRPC_CALLS + TRPC_CALLS + INFRA_MAPS — all parallel-path-only,
1754 * so they share one padded (>50-file) index. Each edge is triggered by an

Callers 1

Calls 1

lang_index_filesFunction · 0.85

Tested by

no test coverage detected