1*5934a791SAdam Czachorowski //===-- DumpSymbolTests.cpp -------------------------------------*- C++ -*-===// 2*5934a791SAdam Czachorowski // 3*5934a791SAdam Czachorowski // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*5934a791SAdam Czachorowski // See https://llvm.org/LICENSE.txt for license information. 5*5934a791SAdam Czachorowski // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*5934a791SAdam Czachorowski // 7*5934a791SAdam Czachorowski //===----------------------------------------------------------------------===// 8*5934a791SAdam Czachorowski 9*5934a791SAdam Czachorowski #include "TweakTesting.h" 10*5934a791SAdam Czachorowski #include "gmock/gmock.h" 11*5934a791SAdam Czachorowski #include "gtest/gtest.h" 12*5934a791SAdam Czachorowski #include <string> 13*5934a791SAdam Czachorowski 14*5934a791SAdam Czachorowski using ::testing::AllOf; 15*5934a791SAdam Czachorowski using ::testing::StartsWith; 16*5934a791SAdam Czachorowski 17*5934a791SAdam Czachorowski namespace clang { 18*5934a791SAdam Czachorowski namespace clangd { 19*5934a791SAdam Czachorowski namespace { 20*5934a791SAdam Czachorowski 21*5934a791SAdam Czachorowski TWEAK_TEST(DumpSymbol); 22*5934a791SAdam Czachorowski TEST_F(DumpSymbolTest,Test)23*5934a791SAdam CzachorowskiTEST_F(DumpSymbolTest, Test) { 24*5934a791SAdam Czachorowski std::string ID = R"("id":"CA2EBE44A1D76D2A")"; 25*5934a791SAdam Czachorowski std::string USR = R"("usr":"c:@F@foo#")"; 26*5934a791SAdam Czachorowski EXPECT_THAT(apply("void f^oo();"), 27*5934a791SAdam Czachorowski AllOf(StartsWith("message:"), testing::HasSubstr(ID), 28*5934a791SAdam Czachorowski testing::HasSubstr(USR))); 29*5934a791SAdam Czachorowski } 30*5934a791SAdam Czachorowski 31*5934a791SAdam Czachorowski } // namespace 32*5934a791SAdam Czachorowski } // namespace clangd 33*5934a791SAdam Czachorowski } // namespace clang 34