Lines Matching refs:EXPECT_TRUE
56 EXPECT_TRUE(NoOpQuery().run(OS, S)); in TEST_F()
68 EXPECT_TRUE(HelpQuery().run(OS, S)); in TEST_F()
70 EXPECT_TRUE(OS.str().find("Available commands:") != std::string::npos); in TEST_F()
74 EXPECT_TRUE(MatchQuery("functionDecl()", FnMatcher).run(OS, S)); in TEST_F()
76 EXPECT_TRUE(OS.str().find("foo.cc:1:1: note: \"root\" binds here") != in TEST_F()
78 EXPECT_TRUE(OS.str().find("foo.cc:2:1: note: \"root\" binds here") != in TEST_F()
80 EXPECT_TRUE(OS.str().find("bar.cc:1:1: note: \"root\" binds here") != in TEST_F()
82 EXPECT_TRUE(OS.str().find("bar.cc:2:1: note: \"root\" binds here") != in TEST_F()
84 EXPECT_TRUE(OS.str().find("4 matches.") != std::string::npos); in TEST_F()
88 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
90 EXPECT_TRUE(OS.str().find("foo.cc:1:1: note: \"root\" binds here") != in TEST_F()
92 EXPECT_TRUE(OS.str().find("1 match.") != std::string::npos); in TEST_F()
96 EXPECT_TRUE( in TEST_F()
98 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
100 EXPECT_TRUE(OS.str().find("Binding for \"root\":\nvoid foo1()") != in TEST_F()
105 EXPECT_TRUE( in TEST_F()
107 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
109 EXPECT_TRUE(OS.str().find("FunctionDecl") != std::string::npos); in TEST_F()
113 EXPECT_TRUE(EnableOutputQuery(&QuerySession::DiagOutput).run(OS, S)); in TEST_F()
114 EXPECT_TRUE(EnableOutputQuery(&QuerySession::DetailedASTOutput).run(OS, S)); in TEST_F()
115 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
119 EXPECT_TRUE(Output.find("FunctionDecl") != std::string::npos); in TEST_F()
120 EXPECT_TRUE(Output.find("foo.cc:1:1: note: \"root\" binds here") != in TEST_F()
126 EXPECT_TRUE(SetQuery<bool>(&QuerySession::BindRoot, false).run(OS, S)); in TEST_F()
127 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
129 EXPECT_TRUE(OS.str().find("No bindings.") != std::string::npos); in TEST_F()
139 EXPECT_TRUE(QueryParser::parse("let x \"foo1\"", S)->run(OS, S)); in TEST_F()
143 EXPECT_TRUE(QueryParser::parse("let y hasName(x)", S)->run(OS, S)); in TEST_F()
147 EXPECT_TRUE(QueryParser::parse("match functionDecl(y)", S)->run(OS, S)); in TEST_F()
148 EXPECT_TRUE(OS.str().find("foo.cc:1:1: note: \"root\" binds here") != in TEST_F()
150 EXPECT_TRUE(OS.str().find("1 match.") != std::string::npos); in TEST_F()
153 EXPECT_TRUE(QueryParser::parse("unlet x", S)->run(OS, S)); in TEST_F()