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

Function app_async_session

tests/test_daemon_application.c:6245–6259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6243}
6244
6245static cbm_daemon_runtime_application_session_t *app_async_session(app_async_fixture_t *fixture,
6246 cbm_daemon_client_id_t id) {
6247 cbm_daemon_runtime_application_session_t *session = app_test_open(&fixture->callbacks, id);
6248 uint8_t *empty = NULL;
6249 uint32_t empty_length = 0;
6250 bool ok = session && app_test_request(&fixture->callbacks, session, fixture->context,
6251 fixture->context_length, &empty,
6252 &empty_length) == CBM_DAEMON_RUNTIME_APPLICATION_OK;
6253 free(empty);
6254 if (!ok && session) {
6255 fixture->callbacks.session_close(fixture->callbacks.context, session);
6256 session = NULL;
6257 }
6258 return session;
6259}
6260
6261/* One index_repository request on its own thread, so a call that (wrongly)
6262 * blocks for the whole index cannot hang the suite: the caller observes

Callers 1

Calls 2

app_test_openFunction · 0.85
app_test_requestFunction · 0.85

Tested by

no test coverage detected