Skip to content

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

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

#include "common_test_utils/common_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/runtime/core.hpp"

TEST(ImportModel, ImportModelWithNullContextThrows) {
    ov::Core core;
    ov::RemoteContext context;
    std::istringstream stream("None");
    ASSERT_THROW(core.import_model(stream, context, {}), ov::Exception);
}