Lines Matching full:replacements
9 // Tests for serialization of Replacements.
24 Doc.Replacements.emplace_back("/path/to/file1.h", 232, 56, "replacement #1"); in TEST()
25 Doc.Replacements.emplace_back("/path/to/file2.h", 301, 2, "replacement #2"); in TEST()
36 "Replacements:\n" in TEST()
53 Doc.Replacements.emplace_back("/path/to/file1.h", 0, 0, "#include <utility>\n"); in TEST()
64 "Replacements:\n" in TEST()
76 "Replacements:\n" in TEST()
90 ASSERT_EQ(2u, DocActual.Replacements.size()); in TEST()
92 ASSERT_EQ("/path/to/file1.h", DocActual.Replacements[0].getFilePath()); in TEST()
93 ASSERT_EQ(232u, DocActual.Replacements[0].getOffset()); in TEST()
94 ASSERT_EQ(56u, DocActual.Replacements[0].getLength()); in TEST()
95 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText()); in TEST()
96 ASSERT_EQ("/path/to/file2.h", DocActual.Replacements[1].getFilePath()); in TEST()
97 ASSERT_EQ(301u, DocActual.Replacements[1].getOffset()); in TEST()
98 ASSERT_EQ(2u, DocActual.Replacements[1].getLength()); in TEST()
99 ASSERT_EQ("replacement #2", DocActual.Replacements[1].getReplacementText()); in TEST()
106 "Replacements:\n" in TEST()
117 ASSERT_EQ(1u, DocActual.Replacements.size()); in TEST()
118 ASSERT_EQ("target_file.h", DocActual.Replacements[0].getFilePath()); in TEST()
119 ASSERT_EQ(1u, DocActual.Replacements[0].getOffset()); in TEST()
120 ASSERT_EQ(10u, DocActual.Replacements[0].getLength()); in TEST()
121 ASSERT_EQ("replacement", DocActual.Replacements[0].getReplacementText()); in TEST()