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

Function openhands_settings_entry_absent

tests/test_cli.c:5580–5587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5578}
5579
5580static bool openhands_settings_entry_absent(const char *settings_path, const char *name) {
5581 yyjson_doc *doc = openhands_read_doc(settings_path);
5582 yyjson_val *root = doc ? yyjson_doc_get_root(doc) : NULL;
5583 yyjson_val *mcp_config = root ? yyjson_obj_get(root, "mcp_config") : NULL;
5584 bool absent = root && (!mcp_config || !yyjson_obj_get(mcp_config, name));
5585 yyjson_doc_free(doc);
5586 return absent;
5587}
5588
5589/* profile → mcp_server_refs must be exactly the given strings in order. */
5590static bool openhands_profile_refs_equal(const char *profile_path, const char *const *expected,

Callers 1

test_cli.cFile · 0.85

Calls 1

openhands_read_docFunction · 0.85

Tested by

no test coverage detected