| 5548 | } |
| 5549 | |
| 5550 | static yyjson_doc *openhands_read_doc(const char *path) { |
| 5551 | char *data = read_test_file_alloc(path); |
| 5552 | if (!data) { |
| 5553 | return NULL; |
| 5554 | } |
| 5555 | yyjson_doc *doc = yyjson_read(data, strlen(data), 0); |
| 5556 | free(data); |
| 5557 | return doc; |
| 5558 | } |
| 5559 | |
| 5560 | /* settings.json → mcp_config.<name> must be {transport:"stdio", command:<binary>, |
| 5561 | * enabled:true}; returns false for any deviation. */ |
no test coverage detected