| 39 | free(value); |
| 40 | } |
| 41 | static 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 | } |
| 53 | static 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; |
no test coverage detected