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

Function test_session_update_inv_session

dpdk/app/test/test_security.c:950–962  ·  view source on GitHub ↗

* Test execution of rte_security_session_update with NULL sess parameter */

Source from the content-addressed store, hash-verified

948 * Test execution of rte_security_session_update with NULL sess parameter
949 */
950static int
951test_session_update_inv_session(void)
952{
953 struct security_unittest_params *ut_params = &unittest_params;
954
955 int ret = rte_security_session_update(&ut_params->ctx, NULL,
956 &ut_params->conf);
957 TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_session_update,
958 ret, -EINVAL, "%d");
959 TEST_ASSERT_MOCK_CALLS(mock_session_update_exp, 0);
960
961 return TEST_SUCCESS;
962}
963
964/**
965 * Test execution of rte_security_session_update when session_update

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected