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

Function issue2208_id_of

tests/test_cypher.c:4211–4219  ·  view source on GitHub ↗

#2208: a node carried IN SCOPE through WITH must project every property * exactly as the same node does without the WITH. The carried var used to be a * name-only stub whose qualified_name slot held the variable name and whose * start_line was 0, so f.qualified_name returned "f" and f.start_line "0". */

Source from the content-addressed store, hash-verified

4209 * name-only stub whose qualified_name slot held the variable name and whose
4210 * start_line was 0, so f.qualified_name returned "f" and f.start_line "0". */
4211static int64_t issue2208_id_of(cbm_store_t *s, const char *qn) {
4212 cbm_node_t n = {0};
4213 int64_t id = 0;
4214 if (cbm_store_find_node_by_qn(s, "test", qn, &n) == CBM_STORE_OK) {
4215 id = n.id;
4216 cbm_node_free_fields(&n);
4217 }
4218 return id;
4219}
4220
4221static cbm_store_t *setup_issue2208_store(void) {
4222 cbm_store_t *s = setup_cypher_store();

Callers 1

setup_issue2208_storeFunction · 0.85

Calls 2

cbm_node_free_fieldsFunction · 0.85

Tested by

no test coverage detected