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

Function oa_link

tests/test_openapi.c:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static int oa_link(const CBMFileResult *r, const char *source_qn, const char *raw) {
44 int n = 0;
45 for (int i = 0; i < r->doc_links.count; i++) {
46 const CBMDocLink *l = &r->doc_links.items[i];
47 n += l->syntax == CBM_DOCLINK_OPENAPI_OPERATION_ID &&
48 strcmp(l->source_qn, source_qn) == 0 && strcmp(l->raw, raw) == 0;
49 }
50 if (n != 1) {
51 printf(" link %s -> %s: %d found\n", source_qn, raw, n);
52 }
53 return n;
54}
55
56static const char OA_YAML[] = "openapi: 3.0.0\n"
57 "info:\n"

Callers 1

test_openapi.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected