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

Function test_free_null

dpdk/app/test/test_thash.c:424–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424static int
425test_free_null(void)
426{
427 struct rte_thash_ctx *ctx;
428
429 ctx = rte_thash_init_ctx("test", 40, 7, NULL, 0);
430 RTE_TEST_ASSERT(ctx != NULL, "Can not create CTX\n");
431
432 rte_thash_free_ctx(ctx);
433 rte_thash_free_ctx(NULL);
434
435 return TEST_SUCCESS;
436}
437
438static int
439test_add_invalid_helper(void)

Callers

nothing calls this directly

Calls 2

rte_thash_init_ctxFunction · 0.85
rte_thash_free_ctxFunction · 0.85

Tested by

no test coverage detected