| 3250 | static int ow_watched_calls = 0; |
| 3251 | static int ow_other_calls = 0; |
| 3252 | static 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 | |
| 3263 | TEST(watcher_poll_only_watched_projects) { |
| 3264 | /* Port of TestPollAllOnlyWatched (#49: the watcher polls its explicit |
nothing calls this directly
no outgoing calls
no test coverage detected