llvm.org GIT mirror llvm / 0fb9b9a
Remove some superfluous SCOPED_TRACEs from this unit test. GoogleTest already prints errors with all the information about which test case contained the error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158724 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 8 years ago
1 changed file(s) with 0 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
7474
7575 // Empty map tests.
7676 TEST_F(StringMapTest, EmptyMapTest) {
77 SCOPED_TRACE("EmptyMapTest");
7877 assertEmptyMap();
7978 }
8079
101100
102101 // A map with a single entry.
103102 TEST_F(StringMapTest, SingleEntryMapTest) {
104 SCOPED_TRACE("SingleEntryMapTest");
105103 testMap[testKey] = testValue;
106104 assertSingleItemMap();
107105 }
108106
109107 // Test clear() method.
110108 TEST_F(StringMapTest, ClearTest) {
111 SCOPED_TRACE("ClearTest");
112109 testMap[testKey] = testValue;
113110 testMap.clear();
114111 assertEmptyMap();
116113
117114 // Test erase(iterator) method.
118115 TEST_F(StringMapTest, EraseIteratorTest) {
119 SCOPED_TRACE("EraseIteratorTest");
120116 testMap[testKey] = testValue;
121117 testMap.erase(testMap.begin());
122118 assertEmptyMap();
124120
125121 // Test erase(value) method.
126122 TEST_F(StringMapTest, EraseValueTest) {
127 SCOPED_TRACE("EraseValueTest");
128123 testMap[testKey] = testValue;
129124 testMap.erase(testKey);
130125 assertEmptyMap();
132127
133128 // Test inserting two values and erasing one.
134129 TEST_F(StringMapTest, InsertAndEraseTest) {
135 SCOPED_TRACE("InsertAndEraseTest");
136130 testMap[testKey] = testValue;
137131 testMap["otherKey"] = 2;
138132 testMap.erase("otherKey");