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

Function tpt_fail

src/mcp/test_impact_tree_util.c:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9bool tpt_fail(tpt_context *c, cbm_pinned_tree_status_t status, const char *message) {
10 if (c->error.status == CBM_PINNED_TREE_OK) {
11 c->error.status = status;
12 c->error.cause = status;
13 size_t i = 0;
14 while (message[i] && i + 1 < sizeof(c->error.diagnostic)) {
15 c->error.diagnostic[i] = message[i];
16 i++;
17 }
18 c->error.diagnostic[i] = 0;
19 }
20 return false;
21}
22
23bool tpt_poll(tpt_context *c) {
24 if (c->error.status != CBM_PINNED_TREE_OK)

Callers 15

tpt_joinFunction · 0.85
tpt_chainFunction · 0.85
tpt_record_identityFunction · 0.85
tpt_stream_chunkFunction · 0.85
tpt_read_streamFunction · 0.85
tpt_entryFunction · 0.85
tpt_auditFunction · 0.85
tpt_root_nameFunction · 0.85
tpt_buildFunction · 0.85
tpt_absent_disposableFunction · 0.85
tpt_pollFunction · 0.85
tpt_after_factsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected