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

Function ow_index_callback

tests/test_watcher.c:3252–3261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3250static int ow_watched_calls = 0;
3251static int ow_other_calls = 0;
3252static int ow_index_callback(const char *name, const char *path, void *ud) {
3253 (void)path;
3254 (void)ud;
3255 if (name && strcmp(name, "projA-ow") == 0) {
3256 ow_watched_calls++;
3257 } else {
3258 ow_other_calls++;
3259 }
3260 return 0;
3261}
3262
3263TEST(watcher_poll_only_watched_projects) {
3264 /* Port of TestPollAllOnlyWatched (#49: the watcher polls its explicit

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected