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

Function cli_scope_until_answered

tests/test_cli.c:1789–1796  ·  view source on GitHub ↗

Repeat an IPC attempt while it reaches a live but mute endpoint, so a slow * reply on a loaded runner is waited for instead of failing the test. A reply * or a definite refusal ends it. Each attempt keeps the API's finite budget. * Returns true when an attempt was answered. */

Source from the content-addressed store, hash-verified

1787 * or a definite refusal ends it. Each attempt keeps the API's finite budget.
1788 * Returns true when an attempt was answered. */
1789static bool cli_scope_until_answered(cli_scope_attempt_fn attempt, void *context) {
1790 for (;;) {
1791 cli_scope_attempt_t outcome = attempt(context);
1792 if (outcome != CLI_SCOPE_MUTE) {
1793 return outcome == CLI_SCOPE_ANSWERED;
1794 }
1795 }
1796}
1797
1798/* One attempt to connect the parent's committed client to the host. */
1799static cli_scope_attempt_t cli_scope_connect_attempt(void *context) {

Callers 3

cli_scope_fixture_startFunction · 0.85
cli_scope_host_servingFunction · 0.85
test_cli.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected