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

Function test_session_create_inv_context

dpdk/app/test/test_security.c:659–675  ·  view source on GitHub ↗

* Test execution of rte_security_session_create with NULL instance */

Source from the content-addressed store, hash-verified

657 * Test execution of rte_security_session_create with NULL instance
658 */
659static int
660test_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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected