| 918 | } |
| 919 | |
| 920 | static int |
| 921 | test_adjust_tuple_mult_reta(void) |
| 922 | { |
| 923 | uint32_t i, j, np, nt; |
| 924 | |
| 925 | nt = 0, np = 0; |
| 926 | for (i = 0; i < CHAR_BIT; i++) { |
| 927 | for (j = 6; j <= RTE_THASH_RETA_SZ_MAX - i; j++) { |
| 928 | np += (test_adjust_tuple_mb(j, i) == 0); |
| 929 | nt++; |
| 930 | } |
| 931 | } |
| 932 | |
| 933 | printf("%s: tests executed: %u, test passed: %u\n", __func__, nt, np); |
| 934 | RTE_TEST_ASSERT(nt == np, "%u subtests failed", nt - np); |
| 935 | return TEST_SUCCESS; |
| 936 | } |
| 937 | |
| 938 | static struct unit_test_suite thash_tests = { |
| 939 | .suite_name = "thash autotest", |
nothing calls this directly
no test coverage detected