* Test execution of rte_security_capabilities_get in successful execution path */
| 1610 | * Test execution of rte_security_capabilities_get in successful execution path |
| 1611 | */ |
| 1612 | static int |
| 1613 | test_capabilities_get_success(void) |
| 1614 | { |
| 1615 | struct security_unittest_params *ut_params = &unittest_params; |
| 1616 | struct rte_security_capability capabilities; |
| 1617 | |
| 1618 | mock_capabilities_get_exp.device = NULL; |
| 1619 | mock_capabilities_get_exp.ret = &capabilities; |
| 1620 | |
| 1621 | const struct rte_security_capability *ret; |
| 1622 | ret = rte_security_capabilities_get(&ut_params->ctx); |
| 1623 | TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_capabilities_get, |
| 1624 | ret, &capabilities, "%p"); |
| 1625 | TEST_ASSERT_MOCK_CALLS(mock_capabilities_get_exp, 1); |
| 1626 | |
| 1627 | return TEST_SUCCESS; |
| 1628 | } |
| 1629 | |
| 1630 | |
| 1631 | /** |
nothing calls this directly
no test coverage detected