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

Function test_capability_get_inv_idx

dpdk/app/test/test_security.c:1695–1707  ·  view source on GitHub ↗

* Test execution of rte_security_capability_get with NULL idx parameter */

Source from the content-addressed store, hash-verified

1693 * Test execution of rte_security_capability_get with NULL idx parameter
1694 */
1695static int
1696test_capability_get_inv_idx(void)
1697{
1698 struct security_unittest_params *ut_params = &unittest_params;
1699
1700 const struct rte_security_capability *ret;
1701 ret = rte_security_capability_get(&ut_params->ctx, NULL);
1702 TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_capability_get,
1703 ret, NULL, "%p");
1704 TEST_ASSERT_MOCK_CALLS(mock_capabilities_get_exp, 0);
1705
1706 return TEST_SUCCESS;
1707}
1708
1709/**
1710 * Test execution of rte_security_capability_get when capabilities_get

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected