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

Function fixture_close

tests/test_runtime_settings.c:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 free(value);
40}
41static void fixture_close(settings_fixture_t *fixture) {
42 cbm_runtime_settings_reset_for_tests();
43 restore_env("CBM_CACHE_DIR", fixture->cache);
44 restore_env("CBM_WORKERS", fixture->workers);
45 restore_env("CBM_DISABLE_LSP_CROSS", fixture->cross);
46 char path[512];
47 snprintf(path, sizeof(path), "%s/_config.db", fixture->path);
48 remove(path);
49 snprintf(path, sizeof(path), "%s/config.json", fixture->path);
50 remove(path);
51 cbm_rmdir(fixture->path);
52}
53static yyjson_val *item(yyjson_doc *document, const char *key) {
54 yyjson_val *items = yyjson_obj_get(yyjson_doc_get_root(document), "settings");
55 size_t index, max;

Callers 1

Calls 4

restore_envFunction · 0.85
removeFunction · 0.85
cbm_rmdirFunction · 0.85

Tested by

no test coverage detected