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

Function test_session_update_inv_context

dpdk/app/test/test_security.c:878–890  ·  view source on GitHub ↗

* Test execution of rte_security_session_update with NULL instance */

Source from the content-addressed store, hash-verified

876 * Test execution of rte_security_session_update with NULL instance
877 */
878static int
879test_session_update_inv_context(void)
880{
881 struct security_unittest_params *ut_params = &unittest_params;
882
883 int ret = rte_security_session_update(NULL, ut_params->sess,
884 &ut_params->conf);
885 TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_session_update,
886 ret, -EINVAL, "%d");
887 TEST_ASSERT_MOCK_CALLS(mock_session_update_exp, 0);
888
889 return TEST_SUCCESS;
890}
891
892/**
893 * Test execution of rte_security_session_update with invalid

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected