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

Function php_vendor_service_edge

tests/test_parallel.c:5023–5034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5021}
5022
5023static bool php_vendor_service_edge(const cbm_gbuf_t *gb, const char *type, const char *name) {
5024 const cbm_gbuf_node_t *source = find_unique_callable_node_by_tail(gb, "Clients.run");
5025 if (!source)
5026 return false;
5027 const cbm_gbuf_edge_t **edges = NULL;
5028 int count = 0;
5029 if (cbm_gbuf_find_edges_by_source_type(gb, source->id, type, &edges, &count) != 0 || count != 1)
5030 return false;
5031 const cbm_gbuf_node_t *target = cbm_gbuf_find_by_id(gb, edges[0]->target_id);
5032 return target && target->label && strcmp(target->label, "Route") == 0 &&
5033 edges[0]->properties_json && strstr(edges[0]->properties_json, name);
5034}
5035
5036static void php_vendor_edge_fp(const cbm_gbuf_edge_t *edge, void *ud) {
5037 if (strcmp(edge->type, "CALLS") == 0 || strcmp(edge->type, "USAGE") == 0 ||

Callers 1

php_vendor_graph_okFunction · 0.85

Tested by

no test coverage detected