| 23952 | } |
| 23953 | |
| 23954 | static bool upsert_context_fixture_node(cbm_mcp_server_t *srv) { |
| 23955 | cbm_store_t *st = cbm_mcp_server_store(srv); |
| 23956 | if (!st) { |
| 23957 | return false; |
| 23958 | } |
| 23959 | cbm_node_t node = {.project = "test-project", |
| 23960 | .label = "Section", |
| 23961 | .name = "long", |
| 23962 | .qualified_name = "test-project.long", |
| 23963 | .file_path = "long.md", |
| 23964 | .start_line = 1, |
| 23965 | .end_line = CTX_FIXTURE_LINES}; |
| 23966 | return cbm_store_upsert_node(st, &node) > 0; |
| 23967 | } |
| 23968 | |
| 23969 | static char *search_code_with_context(cbm_mcp_server_t *srv, const char *context_value) { |
| 23970 | char req[256]; |
no test coverage detected