1//===-- ProtocolUtilsTest.cpp ---------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "ProtocolUtils.h"
10#include "JSONUtils.h"
11#include "lldb/API/LLDB.h"
12#include "gtest/gtest.h"
13#include <optional>
14
15using namespace lldb;
16using namespace lldb_dap;
17
18TEST(ProtocolUtilsTest, CreateModule) {
19 SBTarget target;
20 SBModule module;
21
22 std::optional<protocol::Module> module_opt = CreateModule(target, module);
23 EXPECT_EQ(module_opt, std::nullopt);
24}
25

source code of lldb/unittests/DAP/ProtocolUtilsTest.cpp