Lines Matching full:gettext
16 using tooling::fixit::getText;
35 TEST(FixItTest, getText) { in TEST() argument
39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
44 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
45 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
50 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST()
60 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST()
63 EXPECT_EQ("", getText(*P0, *Context)); in TEST()
64 EXPECT_EQ("", getText(*P1, *Context)); in TEST()
71 EXPECT_EQ("", getText(*CE, *Context)); in TEST()
74 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
75 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
86 EXPECT_EQ("foo(x, y)", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()
92 EXPECT_EQ("x", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST()
98 EXPECT_EQ("y", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST()
107 EXPECT_EQ("x + y", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST()
111 EXPECT_EQ("y + x", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST()
121 EXPECT_EQ("FOO", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()
169 EXPECT_EQ("x", getText(Hint0.RemoveRange.getAsRange(), *Context)); in TEST()
174 EXPECT_EQ("y", getText(Hint1.RemoveRange.getAsRange(), *Context)); in TEST()
225 EXPECT_EQ("x + y", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()