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

Function run_rust_impl

tests/test_extraction_inheritance.c:1530–1546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528} rust_impl_case_t;
1529
1530static int run_rust_impl(const rust_impl_case_t *tc) {
1531 CBMFileResult *r = cbm_extract_file(tc->src, (int)strlen(tc->src), CBM_LANG_RUST, "t", "lib.rs",
1532 0, NULL, NULL);
1533 if (!r) {
1534 printf(" FAIL [impl %s for %s] extract returned NULL\n", tc->trait_name, tc->struct_name);
1535 return 1;
1536 }
1537 int found = rust_has_impl(r, tc->trait_name, tc->struct_name);
1538 if (!found) {
1539 printf(" FAIL [impl %s for %s] not found in impl_traits\n", tc->trait_name,
1540 tc->struct_name);
1541 cbm_free_result(r);
1542 return 1;
1543 }
1544 cbm_free_result(r);
1545 return 0;
1546}
1547
1548#define RUN_RUST_CASES(table) \
1549 do { \

Callers

nothing calls this directly

Calls 3

cbm_extract_fileFunction · 0.85
rust_has_implFunction · 0.85
cbm_free_resultFunction · 0.85

Tested by

no test coverage detected