* Test execution of rte_security_session_create with NULL instance */
| 657 | * Test execution of rte_security_session_create with NULL instance |
| 658 | */ |
| 659 | static int |
| 660 | test_session_create_inv_context(void) |
| 661 | { |
| 662 | struct security_testsuite_params *ts_params = &testsuite_params; |
| 663 | struct security_unittest_params *ut_params = &unittest_params; |
| 664 | void *sess; |
| 665 | |
| 666 | sess = rte_security_session_create(NULL, &ut_params->conf, |
| 667 | ts_params->session_mpool); |
| 668 | TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_session_create, |
| 669 | sess, NULL, "%p"); |
| 670 | TEST_ASSERT_MOCK_CALLS(mock_session_create_exp, 0); |
| 671 | TEST_ASSERT_MEMPOOL_USAGE(0); |
| 672 | TEST_ASSERT_SESSION_COUNT(0); |
| 673 | |
| 674 | return TEST_SUCCESS; |
| 675 | } |
| 676 | |
| 677 | /** |
| 678 | * Test execution of rte_security_session_create with invalid |
nothing calls this directly
no test coverage detected