• Home
  • Raw
  • Download

Lines Matching refs:StmtMatch

91     auto StmtMatch = matchStmt(  in testError()  local
101 ASSERT_TRUE(StmtMatch); in testError()
102 if (auto ResultOrErr = Stencil->eval(StmtMatch->Result)) { in testError()
131 auto StmtMatch = matchStmt( in TEST_F() local
134 ASSERT_TRUE(StmtMatch); in TEST_F()
139 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in TEST_F()
150 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")), in TEST_F() local
152 ASSERT_TRUE(StmtMatch); in TEST_F()
154 auto ResultOrErr = Stencil->eval(StmtMatch->Result); in TEST_F()
163 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testExpr() local
164 ASSERT_TRUE(StmtMatch); in testExpr()
165 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in testExpr()
171 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testFailure() local
172 ASSERT_TRUE(StmtMatch); in testFailure()
173 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in testFailure()
340 auto StmtMatch = matchStmt( in TEST_F() local
344 ASSERT_TRUE(StmtMatch); in TEST_F()
346 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in TEST_F()
362 auto StmtMatch = in TEST_F() local
365 ASSERT_TRUE(StmtMatch); in TEST_F()
367 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), HasValue("field")); in TEST_F()
373 auto StmtMatch = in TEST_F() local
375 ASSERT_TRUE(StmtMatch); in TEST_F()
376 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
383 auto StmtMatch = in TEST_F() local
385 ASSERT_TRUE(StmtMatch); in TEST_F()
386 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
393 auto StmtMatch = in TEST_F() local
395 ASSERT_TRUE(StmtMatch); in TEST_F()
396 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
403 auto StmtMatch = in TEST_F() local
405 ASSERT_TRUE(StmtMatch); in TEST_F()
406 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
413 auto StmtMatch = in TEST_F() local
415 ASSERT_TRUE(StmtMatch); in TEST_F()
416 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
423 auto StmtMatch = in TEST_F() local
425 ASSERT_TRUE(StmtMatch); in TEST_F()
426 EXPECT_THAT_EXPECTED(describe("type")->eval(StmtMatch->Result), in TEST_F()
445 auto StmtMatch = in TEST_F() local
449 ASSERT_TRUE(StmtMatch); in TEST_F()
451 EXPECT_THAT_EXPECTED(S->eval(StmtMatch->Result), HasValue("MACRO")); in TEST_F()
459 auto StmtMatch = in TEST_F() local
461 ASSERT_TRUE(StmtMatch); in TEST_F()
463 EXPECT_THAT_EXPECTED(S->eval(StmtMatch->Result), HasValue("3")); in TEST_F()
472 auto StmtMatch = matchStmt( in TEST_F() local
476 ASSERT_TRUE(StmtMatch); in TEST_F()
478 EXPECT_THAT_EXPECTED(S->eval(StmtMatch->Result), HasValue("3")); in TEST_F()
487 auto StmtMatch = in TEST_F() local
491 ASSERT_TRUE(StmtMatch); in TEST_F()
493 Expected<std::string> Result = S->eval(StmtMatch->Result); in TEST_F()