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