From 076fc1b0d6f08179b2bf0948270a84c22771dc71 Mon Sep 17 00:00:00 2001 From: awayzjj Date: Wed, 20 Mar 2024 19:03:42 +0800 Subject: [PATCH] Add test for CoreImpl::get_versions() (#23336) Closes [23298](https://github.com/openvinotoolkit/openvino/issues/23298) ### Tickets: - [CVS-132140](https://jira.devtools.intel.com/browse/CVS-132140) --------- Co-authored-by: Oleg Pipikin --- src/inference/tests/functional/ov_register_plugin_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inference/tests/functional/ov_register_plugin_test.cpp b/src/inference/tests/functional/ov_register_plugin_test.cpp index a3830743efb919..c494eb14e4d9a0 100644 --- a/src/inference/tests/functional/ov_register_plugin_test.cpp +++ b/src/inference/tests/functional/ov_register_plugin_test.cpp @@ -52,7 +52,9 @@ TEST(RegisterPluginTests, getVersionforRegisteredPluginThrows) { TEST(RegisterPluginTests, getVersionforNoRegisteredPluginNoThrows) { ov::Core core; - ASSERT_NO_THROW(core.get_versions("unkown_device")); + std::map versions; + ASSERT_NO_THROW(versions = core.get_versions("unkown_device")); + ASSERT_TRUE(versions.empty()); auto plugin = std::make_shared>();