[AArch64] Fix SDNode type mismatches between *.td files and ISel (#116523)
[llvm-project.git] / lldb / unittests / Breakpoint / BreakpointIDTest.cpp
blob7d1695e6e3ce05f20c70816a577fa72b78a006d4
1 //===-- BreakpointIDTest.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 //===----------------------------------------------------------------------===//
9 #include "gtest/gtest.h"
11 #include "lldb/Breakpoint/BreakpointID.h"
12 #include "lldb/Utility/Status.h"
14 #include "llvm/ADT/StringRef.h"
16 using namespace lldb;
17 using namespace lldb_private;
19 TEST(BreakpointIDTest, StringIsBreakpointName) {
20 Status E;
21 EXPECT_FALSE(BreakpointID::StringIsBreakpointName("1breakpoint", E));
22 EXPECT_FALSE(BreakpointID::StringIsBreakpointName("-", E));
23 EXPECT_FALSE(BreakpointID::StringIsBreakpointName("", E));
24 EXPECT_FALSE(BreakpointID::StringIsBreakpointName("3.4", E));
26 EXPECT_TRUE(BreakpointID::StringIsBreakpointName("_", E));
27 EXPECT_TRUE(BreakpointID::StringIsBreakpointName("a123", E));
28 EXPECT_TRUE(BreakpointID::StringIsBreakpointName("test", E));