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

Function test_capability_get_inv_context

dpdk/app/test/test_security.c:1638–1650  ·  view source on GitHub ↗

* Test execution of rte_security_capability_get with NULL instance */

Source from the content-addressed store, hash-verified

1636 * Test execution of rte_security_capability_get with NULL instance
1637 */
1638static int
1639test_capability_get_inv_context(void)
1640{
1641 struct rte_security_capability_idx idx;
1642
1643 const struct rte_security_capability *ret;
1644 ret = rte_security_capability_get(NULL, &idx);
1645 TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_capability_get,
1646 ret, NULL, "%p");
1647 TEST_ASSERT_MOCK_CALLS(mock_capabilities_get_exp, 0);
1648
1649 return TEST_SUCCESS;
1650}
1651
1652/**
1653 * Test execution of rte_security_capability_get with invalid

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected