| 378 | } |
| 379 | |
| 380 | static int |
| 381 | test_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 | |
| 406 | static int |
| 407 | test_multiple_create(void) |
nothing calls this directly
no test coverage detected