| 1524 | } rust_impl_case_t; |
| 1525 | |
| 1526 | static 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 { \ |
nothing calls this directly
no test coverage detected