Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

684 B
Raw Blame
// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#include <gtest/gtest.h>

#include <openvino/core/except.hpp>
#include <openvino/runtime/remote_context.hpp>

using namespace ::testing;
using namespace std;

TEST(RemoteContextOVTests, throwsOnUninitializedReset) {
    ov::RemoteContext ctx;
    ASSERT_THROW(ctx.get_device_name(), ov::Exception);
}

TEST(RemoteContextOVTests, throwsOnUninitializedGetname) {
    ov::RemoteContext ctx;
    ASSERT_THROW(ctx.create_tensor({}, {}, {}), ov::Exception);
}

TEST(RemoteContextOVTests, throwsOnUninitializedGetParams) {
    ov::RemoteContext ctx;
    ASSERT_THROW(ctx.get_params(), ov::Exception);
}