MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_adjust_tuple_mult_reta

Function test_adjust_tuple_mult_reta

dpdk/app/test/test_thash.c:920–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918}
919
920static int
921test_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
938static struct unit_test_suite thash_tests = {
939 .suite_name = "thash autotest",

Callers

nothing calls this directly

Calls 2

test_adjust_tuple_mbFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected