* Test execution of rte_security_capability_get when capabilities_get * security operation fails */
| 1711 | * security operation fails |
| 1712 | */ |
| 1713 | static int |
| 1714 | test_capability_get_ops_failure(void) |
| 1715 | { |
| 1716 | struct security_unittest_params *ut_params = &unittest_params; |
| 1717 | struct rte_security_capability_idx idx; |
| 1718 | |
| 1719 | mock_capabilities_get_exp.device = NULL; |
| 1720 | mock_capabilities_get_exp.ret = NULL; |
| 1721 | |
| 1722 | const struct rte_security_capability *ret; |
| 1723 | ret = rte_security_capability_get(&ut_params->ctx, &idx); |
| 1724 | TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_capability_get, |
| 1725 | ret, NULL, "%p"); |
| 1726 | TEST_ASSERT_MOCK_CALLS(mock_capabilities_get_exp, 1); |
| 1727 | |
| 1728 | return TEST_SUCCESS; |
| 1729 | } |
| 1730 | |
| 1731 | /** |
| 1732 | * Test execution of rte_security_capability_get when capabilities table |
nothing calls this directly
no test coverage detected