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

Function run_rust_impl

tests/test_extraction_inheritance.c:1526–1542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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