Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize number of get_versions() calls.
Browse files Browse the repository at this point in the history
awayzjj authored and vurusovs committed Mar 13, 2024
1 parent 63d80e8 commit ab82e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inference/tests/functional/ov_register_plugin_test.cpp
Original file line number Diff line number Diff line change
@@ -52,8 +52,8 @@ TEST(RegisterPluginTests, getVersionforRegisteredPluginThrows) {

TEST(RegisterPluginTests, getVersionforNoRegisteredPluginNoThrows) {
ov::Core core;
ASSERT_NO_THROW(core.get_versions("unkown_device"));
std::map<std::string, ov::Version> versions = core.get_versions("unkown_device");
std::map<std::string, ov::Version> versions;
ASSERT_NO_THROW(versions = core.get_versions("unkown_device"));
ASSERT_TRUE(versions.empty());

auto plugin = std::make_shared<NiceMock<ov::MockIPlugin>>();

0 comments on commit ab82e97

Please sign in to comment.