• Home
  • Raw
  • Download

Lines Matching refs:Completions

175   EXPECT_THAT(Results.Completions,  in TEST()
187 .Completions, in TEST()
193 .Completions, in TEST()
211 ASSERT_EQ(Results.Completions.size(), 1u); in TEST()
212 EXPECT_EQ(Results.Completions[0].Score.Total, MagicNumber); in TEST()
213 EXPECT_EQ(Results.Completions[0].Score.ExcludingName, MagicNumber); in TEST()
219 ASSERT_EQ(Results.Completions.size(), 1u); in TEST()
220 EXPECT_NE(Results.Completions[0].Score.Total, MagicNumber); in TEST()
221 EXPECT_NE(Results.Completions[0].Score.ExcludingName, MagicNumber); in TEST()
239 EXPECT_THAT(Results.Completions, ElementsAre(Named("AAA"), Named("BBB"))); in TEST()
254 EXPECT_THAT(completions(Body + "int main() { S().Foba^ }").Completions, in TEST()
261 completions(Body + "int main() { C^ }", {Sym}).Completions, in TEST()
263 EXPECT_THAT(completions(Body + "int main() { M^ }", {Sym}).Completions, in TEST()
302 EXPECT_THAT(Results.Completions, in testAfterDotCompletion()
305 EXPECT_IFF(Opts.IncludeIneligibleResults, Results.Completions, in testAfterDotCompletion()
309 Results.Completions, in testAfterDotCompletion()
315 EXPECT_THAT(Results.Completions, in testAfterDotCompletion()
318 EXPECT_IFF(Opts.IncludeComments, Results.Completions, in testAfterDotCompletion()
351 EXPECT_THAT(Results.Completions, in testGlobalScopeCompletion()
354 EXPECT_THAT(Results.Completions, in testGlobalScopeCompletion()
359 EXPECT_IFF(Opts.IncludeMacros, Results.Completions, Has("MACRO")); in testGlobalScopeCompletion()
361 EXPECT_THAT(Results.Completions, in testGlobalScopeCompletion()
365 EXPECT_IFF(Opts.IncludeComments, Results.Completions, in testGlobalScopeCompletion()
400 EXPECT_THAT(Internal.Completions, in TEST()
414 EXPECT_THAT(External.Completions, in TEST()
429 EXPECT_THAT(Results.Completions, in TEST()
432 EXPECT_THAT(Results.Completions, in TEST()
435 EXPECT_THAT(Results.Completions, in TEST()
441 EXPECT_THAT(completions("struct X{}; void foo(){ X().^ }").Completions, in TEST()
443 EXPECT_THAT(completions("struct X{ void foo(){ this->^ } };").Completions, in TEST()
446 EXPECT_THAT(completions("struct X{ void foo(){ ^ } };").Completions, in TEST()
449 completions("struct Y{}; struct X:Y{ void foo(){ ^ } };").Completions, in TEST()
454 .Completions, in TEST()
457 EXPECT_THAT(completions("struct X{}; void foo(){ X::^ }").Completions, in TEST()
462 EXPECT_THAT(completions("struct X { void f() { X^ }};").Completions, in TEST()
481 Results.Completions, in TEST()
498 EXPECT_THAT(Results.Completions, in TEST()
513 EXPECT_THAT(Results.Completions, in TEST()
523 EXPECT_THAT(Results.Completions, in TEST()
539 EXPECT_THAT(Results.Completions, in TEST()
550 EXPECT_THAT(Results.Completions, in TEST()
564 Results.Completions, in TEST()
582 Results.Completions, in TEST()
600 Results.Completions, in TEST()
617 EXPECT_THAT(Results.Completions, ElementsAre(Named("Adapter"))); in TEST()
638 EXPECT_THAT(Results.Completions, in TEST()
648 EXPECT_THAT(Results.Completions, UnorderedElementsAre(Named("XYZ"))); in TEST()
653 EXPECT_THAT(Results.Completions, in TEST()
657 EXPECT_THAT(Results.Completions, in TEST()
672 ASSERT_THAT(Results.Completions, in TEST()
682 EXPECT_THAT(Results.Completions, in TEST()
694 EXPECT_THAT(Results.Completions, in TEST()
707 EXPECT_THAT(Results.Completions, in TEST()
724 EXPECT_EQ(Results.Completions.size(), Opts.Limit); in TEST()
741 EXPECT_THAT(Results.Completions, in TEST()
747 EXPECT_THAT(Results.Completions, in TEST()
756 EXPECT_THAT(Results.Completions, ElementsAre(AllOf(Named("X"), Labeled("X"), in TEST()
778 EXPECT_THAT(Results.Completions, in TEST()
798 EXPECT_THAT(WithIndex.Completions, in TEST()
801 EXPECT_THAT(ClassFromPreamble.Completions, Contains(Named("member"))); in TEST()
805 EXPECT_THAT(WithoutIndex.Completions, in TEST()
821 .Completions; in TEST()
833 .Completions; in TEST()
867 EXPECT_THAT(CompletionList.Completions, in TEST()
900 EXPECT_THAT(Results.Completions, Has("XYZ", CompletionItemKind::Class)); in TEST()
901 EXPECT_THAT(Results.Completions, Has("foo", CompletionItemKind::Function)); in TEST()
902 EXPECT_THAT(Results.Completions, Has("XXX", CompletionItemKind::Class)); in TEST()
903 EXPECT_THAT(Results.Completions, in TEST()
923 EXPECT_THAT(Results.Completions, in TEST()
926 Results.Completions, in TEST()
928 EXPECT_THAT(Results.Completions, in TEST()
958 CompletionList.Completions, in TEST()
975 EXPECT_THAT(Results.Completions, IsEmpty()); in TEST()
983 EXPECT_TRUE(Results.Completions.empty()); in TEST()
994 EXPECT_THAT(Results.Completions, Contains(Labeled("clang"))); in TEST()
995 EXPECT_THAT(Results.Completions, Not(Contains(Labeled("clang::")))); in TEST()
1008 EXPECT_THAT(Results.Completions, ElementsAre(Labeled("FooBarBaz"))); in TEST()
1034 EXPECT_THAT(Results.Completions, in TEST()
1052 EXPECT_THAT(Results.Completions, Contains(Named("X"))); in TEST()
1072 EXPECT_TRUE(Results.Completions.empty()); in TEST()
1082 EXPECT_THAT(completions(Context + "int y = X^", {}, Opts).Completions, in TEST()
1084 EXPECT_THAT(completions(Context + "int y = Y^", {}, Opts).Completions, in TEST()
1087 EXPECT_THAT(completions(Context + "int y = Z^", {}, Opts).Completions, in TEST()
1094 auto Completions = completions(R"cpp( in TEST() local
1099 .Completions; in TEST()
1100 EXPECT_THAT(Completions, Contains(Named("TT"))); in TEST()
1520 auto Completions = completions( in TEST() local
1530 EXPECT_THAT(Completions.Completions, in TEST()
1538 auto Completions = completions( in TEST() local
1547 EXPECT_THAT(Completions.Completions, in TEST()
1552 auto Completions = completions( in TEST() local
1561 EXPECT_THAT(Completions.Completions, in TEST()
1566 auto Completions = completions( in TEST() local
1575 EXPECT_THAT(Completions.Completions, in TEST()
1597 EXPECT_THAT(completions(Context + "int y = X().^", {}, Opts).Completions, in TEST()
1603 completions(Context + "int y = GFunc^", {NoArgsGFunc}, Opts).Completions, in TEST()
1611 completions(Context + "int y = GFunc^", {NoArgsGFunc}, Opts).Completions, in TEST()
1617 completions(Context + "int y = X().a^", {}, Opts).Completions.front(); in TEST()
1648 ASSERT_EQ(1u, Results.Completions.size()); in TEST()
1649 const auto &R = Results.Completions.front(); in TEST()
1685 CodeCompleteResult Completions = in TEST() local
1689 EXPECT_THAT(Completions.Completions, in TEST()
1733 completions(Text).Completions, in TEST()
1772 Results.Completions, in TEST()
1848 EXPECT_THAT(Results.Completions, UnorderedElementsAre(Named("NotRecovered"))); in TEST()
1859 EXPECT_THAT(Results.Completions, in TEST()
1902 EXPECT_EQ(Results.Completions.size(), 3u); in TEST()
1907 for (const auto &C : Results.Completions) { in TEST()
1936 EXPECT_EQ(Results.Completions.size(), 3u); in TEST()
1941 for (const auto &C : Results.Completions) { in TEST()
2027 if (Results.Completions.size() != 1) { in TEST()
2031 EXPECT_THAT(Results.Completions.front().CompletionTokenRange, in TEST()
2197 Results.Completions, in TEST()
2207 EXPECT_THAT(Results.Completions, UnorderedElementsAre(AllOf( in TEST()
2219 Results.Completions, in TEST()
2230 Results.Completions, in TEST()
2243 Results.Completions, in TEST()
2269 Results.Completions, in TEST()
2374 auto Results = completions("Fun^", {Sym}).Completions; in TEST()
2394 EXPECT_THAT(completions(TU, Test.point(), {Sym}).Completions, in TEST()
2406 .Completions, in TEST()
2422 EXPECT_THAT(Results.Completions, in TEST()
2435 completions(Body + "int main() { TestClang^ }").Completions, in TEST()
2538 EXPECT_THAT(Results.Completions, in TEST()
2559 EXPECT_THAT(Results.Completions, in TEST()
2578 Results.Completions, in TEST()
2597 EXPECT_THAT(Results.Completions, in TEST()
2609 EXPECT_THAT(Results.Completions, UnorderedElementsAre()); in TEST()
2623 ASSERT_EQ(Results.Completions.size(), 1u); in TEST()
2624 const auto &A = Results.Completions.front(); in TEST()
2648 ASSERT_EQ(Results.Completions.size(), 1u); in TEST()
2649 const auto &A = Results.Completions.front(); in TEST()
2665 auto C = Results.Completions; in TEST()
2683 auto C = Results.Completions; in TEST()
2701 auto C = Results.Completions; in TEST()
2720 auto C = Results.Completions; in TEST()
2740 EXPECT_THAT(Results.Completions, in TEST()
2745 EXPECT_THAT(Results.Completions, in TEST()
2758 EXPECT_THAT(R.Completions, ElementsAre(Named("loopVar"))); in TEST()
2776 EXPECT_THAT(R.Completions, in TEST()
2791 EXPECT_THAT(Results.Completions, in TEST()
2806 EXPECT_THAT(Results.Completions, in TEST()
2823 EXPECT_THAT(Results.Completions, in TEST()
2830 auto Completions = completions(R"cpp( in TEST() local
2841 .Completions; in TEST()
2842 EXPECT_THAT(Completions, in TEST()
2847 auto Completions = completions("auto&& x = []{^").Completions; in TEST() local
2851 EXPECT_THAT(Completions, Contains(Named("x"))); in TEST()
2867 EXPECT_THAT(completions(TU, Test.point()).Completions, in TEST()
2873 auto Completions = completions(WithRange); in TEST() local
2874 EXPECT_EQ(Completions.CompletionRange, Annotations(WithRange).range()); in TEST()
2875 Completions = completionsNoCompile(WithRange); in TEST()
2876 EXPECT_EQ(Completions.CompletionRange, Annotations(WithRange).range()); in TEST()
2879 Completions = completions(EmptyRange); in TEST()
2880 EXPECT_EQ(Completions.CompletionRange, Annotations(EmptyRange).range()); in TEST()
2881 Completions = completionsNoCompile(EmptyRange); in TEST()
2882 EXPECT_EQ(Completions.CompletionRange, Annotations(EmptyRange).range()); in TEST()
2887 Completions = completions(NoCompletion); in TEST()
2888 EXPECT_EQ(Completions.CompletionRange, llvm::None); in TEST()
2889 Completions = completionsNoCompile(NoCompletion); in TEST()
2890 EXPECT_EQ(Completions.CompletionRange, Annotations(NoCompletion).range()); in TEST()
2902 EXPECT_THAT(Results.Completions, in TEST()
2917 EXPECT_THAT(Results.Completions, in TEST()
2936 EXPECT_THAT(Results.Completions, in TEST()
2954 EXPECT_THAT(Results.Completions, in TEST()
2972 EXPECT_THAT(Results.Completions, in TEST()
2986 EXPECT_THAT(Results.Completions, in TEST()
3032 EXPECT_THAT(completions(Context + "int y = fo^", {}, Opts).Completions, in TEST()
3036 completions(Context + "int y = fo^(42)", {}, Opts).Completions, in TEST()
3039 EXPECT_THAT(completions(Context + "int y = fo^o(42)", {}, Opts).Completions, in TEST()
3043 completions(Context + "int y = ba^", {}, Opts).Completions, in TEST()
3045 EXPECT_THAT(completions(Context + "int y = ba^()", {}, Opts).Completions, in TEST()
3048 completions(Context + "Object o = Obj^", {}, Opts).Completions, in TEST()
3051 EXPECT_THAT(completions(Context + "Object o = Obj^()", {}, Opts).Completions, in TEST()
3055 completions(Context + "Container c = Cont^", {}, Opts).Completions, in TEST()
3062 completions(Context + "Container c = Cont^()", {}, Opts).Completions, in TEST()