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

Function test_create_invalid

dpdk/app/test/test_thash.c:380–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380static int
381test_create_invalid(void)
382{
383 struct rte_thash_ctx *ctx;
384 int key_len = 40;
385 int reta_sz = 7;
386
387 ctx = rte_thash_init_ctx(NULL, key_len, reta_sz, NULL, 0);
388 RTE_TEST_ASSERT(ctx == NULL,
389 "Call succeeded with invalid parameters\n");
390
391 ctx = rte_thash_init_ctx("test", 0, reta_sz, NULL, 0);
392 RTE_TEST_ASSERT(ctx == NULL,
393 "Call succeeded with invalid parameters\n");
394
395 ctx = rte_thash_init_ctx(NULL, key_len, 1, NULL, 0);
396 RTE_TEST_ASSERT(ctx == NULL,
397 "Call succeeded with invalid parameters\n");
398
399 ctx = rte_thash_init_ctx(NULL, key_len, 17, NULL, 0);
400 RTE_TEST_ASSERT(ctx == NULL,
401 "Call succeeded with invalid parameters\n");
402
403 return TEST_SUCCESS;
404}
405
406static int
407test_multiple_create(void)

Callers

nothing calls this directly

Calls 1

rte_thash_init_ctxFunction · 0.85

Tested by

no test coverage detected