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

Function test_find_existing

dpdk/app/test/test_thash.c:495–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495static int
496test_find_existing(void)
497{
498 struct rte_thash_ctx *ctx, *ret_ctx;
499
500 ctx = rte_thash_init_ctx("test", 40, 7, NULL, 0);
501 RTE_TEST_ASSERT(ctx != NULL, "can not create thash ctx\n");
502
503 ret_ctx = rte_thash_find_existing("test");
504 RTE_TEST_ASSERT(ret_ctx != NULL, "can not find existing ctx\n");
505
506 rte_thash_free_ctx(ctx);
507
508 return TEST_SUCCESS;
509}
510
511static int
512test_get_helper(void)

Callers

nothing calls this directly

Calls 3

rte_thash_init_ctxFunction · 0.85
rte_thash_find_existingFunction · 0.85
rte_thash_free_ctxFunction · 0.85

Tested by

no test coverage detected