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

Function failing_index_callback

tests/test_watcher.c:1958–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1956static int failing_index_calls = 0;
1957static int failing_index_fail_first_n = 0;
1958static int failing_index_callback(const char *name, const char *path, void *ud) {
1959 (void)name;
1960 (void)path;
1961 (void)ud;
1962 failing_index_calls++;
1963 if (failing_index_calls <= failing_index_fail_first_n) {
1964 return -1; /* simulated pipeline failure */
1965 }
1966 return 0;
1967}
1968
1969TEST(watcher_failed_reindex_retries_issue937) {
1970 char tmpdir[256];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected