OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
// 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);
}