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

Function cpp_recv_fixture_indexed

tests/test_pipeline.c:23190–23225  ·  view source on GitHub ↗

Every node an assertion names must exist, or "no CALLS edge" would also * pass for a fixture that never got indexed. */

Source from the content-addressed store, hash-verified

23188/* Every node an assertion names must exist, or "no CALLS edge" would also
23189 * pass for a fixture that never got indexed. */
23190static bool cpp_recv_fixture_indexed(const CppRecvRun *r) {
23191 static const char *const required[] = {
23192 "pil.src.SecdCfgHandlerThread.GetExternalPhyPresent",
23193 "pil.src.SecdCfgHandlerThread.UseRegistry",
23194 "pil.src.SecdCfgHandlerThread.UseWidget",
23195 "pil.src.SecdCfgHandlerThread.UseSession",
23196 "pil.src.SecdCfgHandlerThread.UseUnknown",
23197 "pil.src.SecdCfgHandlerThread.UseTwin",
23198 "app.src.SecdManager.SecdManager.getInstance",
23199 "app.src.SecdManager.SecdManager.secd_retrieve_pic_fpc_i2c_id",
23200 "app.src.SecdManager.Registry.registerItem",
23201 "app.src.SecdManager.Widget.paint",
23202 "app.src.SecdManager.Session.close",
23203 "app.src.SecdManager.Other.secd_retrieve_pic_fpc_i2c_id",
23204 "app.src.SecdManager.Other.registerItem",
23205 "app.src.SecdManager.Other.paint",
23206 "app.src.SecdManager.Other.close",
23207 "lib_a.Twin.Twin.get",
23208 "lib_a.Twin.Twin.run",
23209 "lib_b.Twin.Twin.get",
23210 "lib_b.Twin.Twin.run",
23211 };
23212 bool all = true;
23213 for (size_t i = 0; i < sizeof(required) / sizeof(required[0]); i++) {
23214 char qn[512];
23215 snprintf(qn, sizeof(qn), "%s.%s", r->project, required[i]);
23216 cbm_node_t n;
23217 memset(&n, 0, sizeof(n));
23218 if (cbm_store_find_node_by_qn(r->s, r->project, qn, &n) != CBM_STORE_OK) {
23219 printf(" fixture node missing: %s\n", qn);
23220 all = false;
23221 }
23222 cbm_node_free_fields(&n);
23223 }
23224 return all;
23225}
23226
23227/* Index the fixture; false (after cleanup) when the run itself fails. */
23228static bool cpp_recv_open(CppRecvRun *r, bool parallel) {

Callers 1

cpp_recv_openFunction · 0.85

Calls 2

cbm_node_free_fieldsFunction · 0.85

Tested by

no test coverage detected