| 273 | } |
| 274 | |
| 275 | static bool mcp_search_cache_close(mcp_search_cache_t *cache) { |
| 276 | restore_cache_dir(cache->saved_cache); |
| 277 | free(cache->saved_cache); |
| 278 | cache->saved_cache = NULL; |
| 279 | return th_rmtree(cache->path) == 0; |
| 280 | } |
| 281 | static bool mcp_snapshot_read_hook_probe(void *context, const char *absolute_path) { |
| 282 | const char *rejected_fragment = context; |
| 283 | return !rejected_fragment || !absolute_path || !strstr(absolute_path, rejected_fragment); |
no test coverage detected