[Lldb-commits] [lldb] r299729 - Add more tests for ExtractContextAndIdentifier
Eugene Zemtsov via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 6 16:12:43 PDT 2017
Author: eugene
Date: Thu Apr 6 18:12:43 2017
New Revision: 299729
URL: http://llvm.org/viewvc/llvm-project?rev=299729&view=rev
Log:
Add more tests for ExtractContextAndIdentifier
Modified:
lldb/trunk/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
Modified: lldb/trunk/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp?rev=299729&r1=299728&r2=299729&view=diff
==============================================================================
--- lldb/trunk/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp (original)
+++ lldb/trunk/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp Thu Apr 6 18:12:43 2017
@@ -124,6 +124,7 @@ TEST(CPlusPlusLanguage, ExtractContextAn
TestCase test_cases[] = {
{"main", "", "main"},
+ {"main ", "", "main"},
{"foo01::bar", "foo01", "bar"},
{"foo::~bar", "foo", "~bar"},
{"std::vector<int>::push_back", "std::vector<int>", "push_back"},
@@ -150,4 +151,8 @@ TEST(CPlusPlusLanguage, ExtractContextAn
CPlusPlusLanguage::ExtractContextAndIdentifier("", context, basename));
EXPECT_FALSE(CPlusPlusLanguage::ExtractContextAndIdentifier(
"selector:", context, basename));
+ EXPECT_FALSE(CPlusPlusLanguage::ExtractContextAndIdentifier(
+ "selector:otherField:", context, basename));
+ EXPECT_FALSE(CPlusPlusLanguage::ExtractContextAndIdentifier(
+ "abc::", context, basename));
}
More information about the lldb-commits
mailing list