@@ -442,6 +442,7 @@ TEST(RenameTest, WithinFileRename) {
442
442
)cpp" ,
443
443
};
444
444
for (llvm::StringRef T : Tests) {
445
+ SCOPED_TRACE (T);
445
446
Annotations Code (T);
446
447
auto TU = TestTU::withCode (Code.code ());
447
448
TU.ExtraArgs .push_back (" -fno-delayed-template-parsing" );
@@ -560,6 +561,7 @@ TEST(RenameTest, Renameable) {
560
561
};
561
562
562
563
for (const auto & Case : Cases) {
564
+ SCOPED_TRACE (Case.Code );
563
565
Annotations T (Case.Code );
564
566
TestTU TU = TestTU::withCode (T.code ());
565
567
TU.HeaderCode = CommonHeader;
@@ -886,6 +888,7 @@ TEST(CrossFileRenameTests, WithUpToDateIndex) {
886
888
};
887
889
888
890
for (const auto & T : Cases) {
891
+ SCOPED_TRACE (T.FooH );
889
892
Annotations FooH (T.FooH );
890
893
Annotations FooCC (T.FooCC );
891
894
std::string FooHPath = testPath (" foo.h" );
@@ -1012,15 +1015,15 @@ TEST(CrossFileRenameTests, adjustRenameRanges) {
1012
1015
LangOptions LangOpts;
1013
1016
LangOpts.CPlusPlus = true ;
1014
1017
for (const auto &T : Tests) {
1018
+ SCOPED_TRACE (T.DraftCode );
1015
1019
Annotations Draft (T.DraftCode );
1016
1020
auto ActualRanges = adjustRenameRanges (
1017
1021
Draft.code (), " x" , Annotations (T.IndexedCode ).ranges (), LangOpts);
1018
1022
if (!ActualRanges)
1019
1023
EXPECT_THAT (Draft.ranges (), testing::IsEmpty ());
1020
1024
else
1021
1025
EXPECT_THAT (Draft.ranges (),
1022
- testing::UnorderedElementsAreArray (*ActualRanges))
1023
- << T.DraftCode ;
1026
+ testing::UnorderedElementsAreArray (*ActualRanges));
1024
1027
}
1025
1028
}
1026
1029
@@ -1127,6 +1130,7 @@ TEST(RangePatchingHeuristic, GetMappedRanges) {
1127
1130
}
1128
1131
};
1129
1132
for (const auto &T : Tests) {
1133
+ SCOPED_TRACE (T.IndexedCode );
1130
1134
auto Lexed = Annotations (T.LexedCode );
1131
1135
auto LexedRanges = Lexed.ranges ();
1132
1136
std::vector<Range> ExpectedMatches;
@@ -1143,8 +1147,7 @@ TEST(RangePatchingHeuristic, GetMappedRanges) {
1143
1147
if (!Mapped)
1144
1148
EXPECT_THAT (ExpectedMatches, IsEmpty ());
1145
1149
else
1146
- EXPECT_THAT (ExpectedMatches, UnorderedElementsAreArray (*Mapped))
1147
- << T.IndexedCode ;
1150
+ EXPECT_THAT (ExpectedMatches, UnorderedElementsAreArray (*Mapped));
1148
1151
}
1149
1152
}
1150
1153
@@ -1247,13 +1250,14 @@ TEST(CrossFileRenameTests, adjustmentCost) {
1247
1250
},
1248
1251
};
1249
1252
for (const auto &T : Tests) {
1253
+ SCOPED_TRACE (T.RangeCode );
1250
1254
Annotations C (T.RangeCode );
1251
1255
std::vector<size_t > MappedIndex;
1252
1256
for (size_t I = 0 ; I < C.ranges (" lex" ).size (); ++I)
1253
1257
MappedIndex.push_back (I);
1254
1258
EXPECT_EQ (renameRangeAdjustmentCost (C.ranges (" idx" ), C.ranges (" lex" ),
1255
1259
MappedIndex),
1256
- T.ExpectedCost ) << T. RangeCode ;
1260
+ T.ExpectedCost );
1257
1261
}
1258
1262
}
1259
1263
0 commit comments