| 493 | } |
| 494 | |
| 495 | static int |
| 496 | test_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 | |
| 511 | static int |
| 512 | test_get_helper(void) |
nothing calls this directly
no test coverage detected