• Home
  • Raw
  • Download

Lines Matching refs:Err

146   auto Err = Replaces.add(Deletion);  in TEST_F()  local
147 EXPECT_TRUE(!Err); in TEST_F()
148 llvm::consumeError(std::move(Err)); in TEST_F()
151 Err = Replaces.add(OverlappingReplacement); in TEST_F()
152 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F()
157 Err = Replaces.add(Replacement(ContainedReplacement)); in TEST_F()
158 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F()
163 Err = Replaces.add(WrongPathReplacement); in TEST_F()
164 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F()
175 auto Err = Replaces.add(R); in TEST_F() local
176 EXPECT_TRUE(!Err); in TEST_F()
177 llvm::consumeError(std::move(Err)); in TEST_F()
178 Err = Replaces.add(Replacement("x.cc", 0, 2, "")); in TEST_F()
179 EXPECT_TRUE(!Err); in TEST_F()
180 llvm::consumeError(std::move(Err)); in TEST_F()
181 Err = Replaces.add(Replacement("x.cc", 2, 2, "")); in TEST_F()
182 EXPECT_TRUE(!Err); in TEST_F()
183 llvm::consumeError(std::move(Err)); in TEST_F()
190 auto Err = Replaces.add(Replacement("x.cc", 0, 3, "345")); in TEST_F() local
191 EXPECT_TRUE(!Err); in TEST_F()
192 llvm::consumeError(std::move(Err)); in TEST_F()
193 Err = Replaces.add(Replacement("x.cc", 2, 3, "543")); in TEST_F()
194 EXPECT_TRUE(!Err); in TEST_F()
195 llvm::consumeError(std::move(Err)); in TEST_F()
200 Err = Replaces.add(Replacement("x.cc", 2, 1, "5")); in TEST_F()
201 EXPECT_TRUE(!Err); in TEST_F()
202 llvm::consumeError(std::move(Err)); in TEST_F()
210 auto Err = Replaces.add(Replacement("x.cc", 10, 3, "replace")); in TEST_F() local
211 EXPECT_TRUE(!Err); in TEST_F()
212 llvm::consumeError(std::move(Err)); in TEST_F()
213 Err = Replaces.add(Replacement("x.cc", 10, 0, "insert")); in TEST_F()
214 EXPECT_TRUE(!Err); in TEST_F()
215 llvm::consumeError(std::move(Err)); in TEST_F()
220 Err = Replaces.add(Replacement("x.cc", 10, 0, "insert")); in TEST_F()
221 EXPECT_TRUE(!Err); in TEST_F()
222 llvm::consumeError(std::move(Err)); in TEST_F()
223 Err = Replaces.add(Replacement("x.cc", 10, 3, "replace")); in TEST_F()
224 EXPECT_TRUE(!Err); in TEST_F()
225 llvm::consumeError(std::move(Err)); in TEST_F()
232 auto Err = Replaces.add(ContainingReplacement); in TEST_F() local
233 EXPECT_TRUE(!Err); in TEST_F()
234 llvm::consumeError(std::move(Err)); in TEST_F()
236 Err = Replaces.add(Replacement("x.cc", 5, 3, "")); in TEST_F()
237 EXPECT_TRUE(!Err); in TEST_F()
238 llvm::consumeError(std::move(Err)); in TEST_F()
240 Err = Replaces.add(Replacement("x.cc", 0, 10, "")); in TEST_F()
241 EXPECT_TRUE(!Err); in TEST_F()
242 llvm::consumeError(std::move(Err)); in TEST_F()
244 Err = Replaces.add(Replacement("x.cc", 5, 5, "")); in TEST_F()
245 EXPECT_TRUE(!Err); in TEST_F()
246 llvm::consumeError(std::move(Err)); in TEST_F()
254 auto Err = Replaces.add(Replacement("x.cc", 0, 2, "")); in TEST_F() local
255 EXPECT_TRUE(!Err); in TEST_F()
256 llvm::consumeError(std::move(Err)); in TEST_F()
258 Err = Replaces.add(Replacement("x.cc", 5, 5, "")); in TEST_F()
259 EXPECT_TRUE(!Err); in TEST_F()
260 llvm::consumeError(std::move(Err)); in TEST_F()
263 Err = Replaces.add(After); in TEST_F()
264 EXPECT_TRUE(!Err); in TEST_F()
265 llvm::consumeError(std::move(Err)); in TEST_F()
268 Err = Replaces.add(ContainingReplacement); in TEST_F()
269 EXPECT_TRUE(!Err); in TEST_F()
270 llvm::consumeError(std::move(Err)); in TEST_F()
281 auto Err = Replaces.add(Insertion); in TEST_F() local
282 EXPECT_TRUE(!Err); in TEST_F()
283 llvm::consumeError(std::move(Err)); in TEST_F()
285 Err = Replaces.add(Replacement("x.cc", 5, 5, "")); in TEST_F()
286 EXPECT_TRUE(!Err); in TEST_F()
287 llvm::consumeError(std::move(Err)); in TEST_F()
290 Err = Replaces.add(Deletion); in TEST_F()
291 EXPECT_TRUE(!Err); in TEST_F()
292 llvm::consumeError(std::move(Err)); in TEST_F()
301 auto Err = Replaces.add(Replacement("x.cc", 0, 2, "")); in TEST_F() local
302 EXPECT_TRUE(!Err); in TEST_F()
303 llvm::consumeError(std::move(Err)); in TEST_F()
305 Err = Replaces.add(Replacement("x.cc", 0, 5, "")); in TEST_F()
306 EXPECT_TRUE(!Err); in TEST_F()
307 llvm::consumeError(std::move(Err)); in TEST_F()
312 Err = Replaces.add(Replacement("x.cc", 1, 5, "")); in TEST_F()
313 EXPECT_TRUE(!Err); in TEST_F()
314 llvm::consumeError(std::move(Err)); in TEST_F()
322 auto Err = Replaces.add(First); in TEST_F() local
323 EXPECT_TRUE(!Err); in TEST_F()
324 llvm::consumeError(std::move(Err)); in TEST_F()
327 Err = Replaces.add(Second); in TEST_F()
328 EXPECT_TRUE(!Err); in TEST_F()
329 llvm::consumeError(std::move(Err)); in TEST_F()
331 Err = Replaces.add(Replacement("x.cc", 1, 10, "")); in TEST_F()
332 EXPECT_TRUE(!Err); in TEST_F()
333 llvm::consumeError(std::move(Err)); in TEST_F()
343 auto Err = Replaces.add(Replacement("x.cc", 0, 10, "1")); in TEST_F() local
344 EXPECT_TRUE(!Err); in TEST_F()
345 llvm::consumeError(std::move(Err)); in TEST_F()
346 Err = Replaces.add(Replacement("x.cc", 10, 0, "")); in TEST_F()
347 EXPECT_TRUE(!Err); in TEST_F()
348 llvm::consumeError(std::move(Err)); in TEST_F()
353 Err = Replaces.add(OverlappingReplacement); in TEST_F()
354 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F()
358 Err = Replaces.add(Replacement("x.cc", 10, 0, "")); in TEST_F()
359 EXPECT_TRUE(!Err); in TEST_F()
360 llvm::consumeError(std::move(Err)); in TEST_F()
365 auto Err = Replaces.add(Replacement("x.cc", 10, 2, "")); in TEST_F() local
366 EXPECT_TRUE(!Err); in TEST_F()
367 llvm::consumeError(std::move(Err)); in TEST_F()
368 Err = Replaces.add(Replacement("x.cc", 10, 0, "")); in TEST_F()
369 EXPECT_TRUE(!Err); in TEST_F()
370 llvm::consumeError(std::move(Err)); in TEST_F()
374 Err = Replaces.add(Replacement("x.cc", 10, 0, "")); in TEST_F()
375 EXPECT_TRUE(!Err); in TEST_F()
376 llvm::consumeError(std::move(Err)); in TEST_F()
377 Err = Replaces.add(Replacement("x.cc", 10, 2, "")); in TEST_F()
378 EXPECT_TRUE(!Err); in TEST_F()
379 llvm::consumeError(std::move(Err)); in TEST_F()
385 auto Err = Replaces.add(Replacement("x.cc", 10, 0, "a")); in TEST_F() local
386 EXPECT_TRUE(!Err); in TEST_F()
387 llvm::consumeError(std::move(Err)); in TEST_F()
389 Err = Replaces.add(ConflictInsertion); in TEST_F()
390 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F()
395 Err = Replaces.add(Replacement("x.cc", 10, 0, "a")); in TEST_F()
396 EXPECT_TRUE(!Err); in TEST_F()
397 llvm::consumeError(std::move(Err)); in TEST_F()
398 Err = Replaces.add(Replacement("x.cc", 10, 0, "aa")); in TEST_F()
399 EXPECT_TRUE(!Err); in TEST_F()
400 llvm::consumeError(std::move(Err)); in TEST_F()
405 Err = Replaces.add(Replacement("x.cc", 10, 0, "")); in TEST_F()
406 EXPECT_TRUE(!Err); in TEST_F()
407 llvm::consumeError(std::move(Err)); in TEST_F()
408 Err = Replaces.add(Replacement("x.cc", 10, 3, "")); in TEST_F()
409 EXPECT_TRUE(!Err); in TEST_F()
410 llvm::consumeError(std::move(Err)); in TEST_F()
411 Err = Replaces.add(Replacement("x.cc", 10, 0, "")); in TEST_F()
412 EXPECT_TRUE(!Err); in TEST_F()
413 llvm::consumeError(std::move(Err)); in TEST_F()
421 auto Err = Replaces.add(Replacement("x.cc", 10, 5, "a")); in TEST_F() local
422 EXPECT_TRUE(!Err); in TEST_F()
423 llvm::consumeError(std::move(Err)); in TEST_F()
424 Err = Replaces.add(Replacement("x.cc", 8, 2, "a")); in TEST_F()
425 EXPECT_TRUE(!Err); in TEST_F()
426 llvm::consumeError(std::move(Err)); in TEST_F()
427 Err = Replaces.add(Replacement("x.cc", 10, 0, "b")); in TEST_F()
428 EXPECT_TRUE(!Err); in TEST_F()
429 llvm::consumeError(std::move(Err)); in TEST_F()
473 auto Err = Replaces.add(Replacement( in TEST_F() local
475 EXPECT_TRUE(!Err); in TEST_F()
476 llvm::consumeError(std::move(Err)); in TEST_F()
478 Err = Replaces.add(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
480 EXPECT_TRUE(!Err); in TEST_F()
481 llvm::consumeError(std::move(Err)); in TEST_F()
495 auto Err = Replaces.add(ConflictReplacement); in TEST_F() local
496 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F()
1112 llvm::Error Err = in TEST_F() local
1114 ASSERT_TRUE(!Err); in TEST_F()
1115 Err = Change.insert(Context.Sources, DefaultLoc.getLocWithOffset(10), "bb", in TEST_F()
1117 ASSERT_TRUE(!Err); in TEST_F()
1164 llvm::Error Err = ExpectedChange.insert(Context.Sources, DefaultLoc, "aa", in TEST_F() local
1166 ASSERT_TRUE(!Err); in TEST_F()
1167 Err = ExpectedChange.insert(Context.Sources, DefaultLoc.getLocWithOffset(10), in TEST_F()
1169 ASSERT_TRUE(!Err); in TEST_F()
1200 llvm::Error Err = Change.replace(Context.Sources, DefaultLoc, 2, "aa"); in TEST_F() local
1201 ASSERT_TRUE(!Err); in TEST_F()
1207 Err = Change.replace(Context.Sources, DefaultLoc, 3, "ab"); in TEST_F()
1208 EXPECT_TRUE((bool)Err); in TEST_F()
1209 llvm::consumeError(std::move(Err)); in TEST_F()
1216 llvm::Error Err = Change.replace( in TEST_F() local
1218 ASSERT_TRUE(!Err); in TEST_F()
1226 llvm::Error Err = Change.insert(Context.Sources, DefaultLoc, "aa"); in TEST_F() local
1227 ASSERT_TRUE(!Err); in TEST_F()
1231 Err = Change.insert(Context.Sources, DefaultLoc, "b", /*InsertAfter=*/false); in TEST_F()
1232 ASSERT_TRUE(!Err); in TEST_F()
1240 llvm::Error Err = Change.insert(Context.Sources, DefaultLoc, "aa"); in TEST_F() local
1241 ASSERT_TRUE(!Err); in TEST_F()
1245 Err = Change.insert(Context.Sources, DefaultLoc, "b"); in TEST_F()
1246 ASSERT_TRUE(!Err); in TEST_F()
1254 llvm::Error Err = in TEST_F() local
1256 ASSERT_TRUE(!Err); in TEST_F()
1259 Err = Change.insert(Context.Sources, SourceLocation(), "a", in TEST_F()
1261 ASSERT_TRUE((bool)Err); in TEST_F()
1263 std::move(Err), replacement_error::wrong_file_path, in TEST_F()
1270 llvm::Error Err = in TEST_F() local
1272 ASSERT_TRUE(!Err); in TEST_F()
1277 Err = Change.insert(Context.Sources, NewLoc, "b", /*InsertAfter=*/false); in TEST_F()
1278 ASSERT_TRUE((bool)Err); in TEST_F()
1280 checkReplacementError(std::move(Err), replacement_error::wrong_file_path, in TEST_F()
1287 llvm::Error Err = Change.insert(Context.Sources, DefaultLoc, "a"); in TEST_F() local
1288 ASSERT_TRUE(!Err); in TEST_F()
1291 Err = Change.insert(Context.Sources, SourceLocation(), "b"); in TEST_F()
1292 ASSERT_TRUE((bool)Err); in TEST_F()
1294 std::move(Err), replacement_error::wrong_file_path, in TEST_F()
1334 llvm::Error Err = in replacementToAtomicChange() local
1336 EXPECT_FALSE(Err); in replacementToAtomicChange()
1386 auto Err = Changes.back().replace( in TEST_F() local
1389 ASSERT_TRUE(!Err); in TEST_F()
1641 auto Err = Changes.back().replace(Context.Sources, getLoc(9), 3, ""); in TEST_F() local
1642 ASSERT_TRUE(!Err); in TEST_F()
1643 Err = Changes.back().replace(Context.Sources, getLoc(35), 3, ""); in TEST_F()
1644 ASSERT_TRUE(!Err); in TEST_F()
1645 Err = Changes.back().replace(Context.Sources, getLoc(51), 3, ""); in TEST_F()
1646 ASSERT_TRUE(!Err); in TEST_F()
1647 Err = Changes.back().replace(Context.Sources, getLoc(56), 3, ""); in TEST_F()
1648 ASSERT_TRUE(!Err); in TEST_F()
1649 Err = Changes.back().replace(Context.Sources, getLoc(72), 3, ""); in TEST_F()
1650 ASSERT_TRUE(!Err); in TEST_F()
1651 Err = Changes.back().replace(Context.Sources, getLoc(97), 3, ""); in TEST_F()
1652 ASSERT_TRUE(!Err); in TEST_F()
1653 Err = Changes.back().replace(Context.Sources, getLoc(118), 3, ""); in TEST_F()
1654 ASSERT_TRUE(!Err); in TEST_F()
1668 auto Err = Changes.back().replace(Context.Sources, getLoc(7), 5, ""); in TEST_F() local
1669 ASSERT_TRUE(!Err); in TEST_F()
1670 Err = Changes.back().replace(Context.Sources, getLoc(23), 8, ""); in TEST_F()
1671 ASSERT_TRUE(!Err); in TEST_F()
1672 Err = Changes.back().replace(Context.Sources, getLoc(36), 1, ""); in TEST_F()
1673 ASSERT_TRUE(!Err); in TEST_F()
1674 Err = Changes.back().replace(Context.Sources, getLoc(45), 3, ""); in TEST_F()
1675 ASSERT_TRUE(!Err); in TEST_F()
1676 Err = Changes.back().replace(Context.Sources, getLoc(53), 1, ""); in TEST_F()
1677 ASSERT_TRUE(!Err); in TEST_F()
1678 Err = Changes.back().replace(Context.Sources, getLoc(56), 1, ""); in TEST_F()
1679 ASSERT_TRUE(!Err); in TEST_F()
1692 auto Err = Changes.back().replace(Context.Sources, getLoc(7), 5, ""); in TEST_F() local
1693 ASSERT_TRUE(!Err); in TEST_F()
1694 Err = Changes.back().replace(Context.Sources, getLoc(23), 8, ""); in TEST_F()
1695 ASSERT_TRUE(!Err); in TEST_F()
1696 Err = Changes.back().replace(Context.Sources, getLoc(36), 1, ""); in TEST_F()
1697 ASSERT_TRUE(!Err); in TEST_F()
1698 Err = Changes.back().replace(Context.Sources, getLoc(45), 3, ""); in TEST_F()
1699 ASSERT_TRUE(!Err); in TEST_F()
1700 Err = Changes.back().replace(Context.Sources, getLoc(53), 1, ""); in TEST_F()
1701 ASSERT_TRUE(!Err); in TEST_F()
1702 Err = Changes.back().replace(Context.Sources, getLoc(56), 1, ""); in TEST_F()
1703 ASSERT_TRUE(!Err); in TEST_F()
1720 auto Err = Changes.back().replace(Context.Sources, getLoc(4), 1, ""); in TEST_F() local
1721 ASSERT_TRUE(!Err); in TEST_F()
1722 Err = Changes.back().replace(Context.Sources, getLoc(4), 0, "b"); in TEST_F()
1723 ASSERT_TRUE(!Err); in TEST_F()
1724 Err = Changes.back().replace(Context.Sources, getLoc(11), 0, "a"); in TEST_F()
1725 ASSERT_TRUE(!Err); in TEST_F()
1726 Err = Changes.back().replace(Context.Sources, getLoc(11), 1, ""); in TEST_F()
1727 ASSERT_TRUE(!Err); in TEST_F()