• Home
  • Raw
  • Download

Lines Matching refs:apply

28   EXPECT_EQ(apply("for(;;) [[1+2; 1+2;]]"), "unavailable");  in TEST_F()
30 EXPECT_EQ(apply("int x = 0; [[x++;]]"), "unavailable"); in TEST_F()
32 EXPECT_EQ(apply("auto lam = [](){ [[int x;]] }; "), "unavailable"); in TEST_F()
34 EXPECT_THAT(apply("int [[x = 0]];"), "unavailable"); in TEST_F()
36 EXPECT_THAT(apply(" [[int a = 5;]] a++; "), "unavailable"); in TEST_F()
40 EXPECT_THAT(apply("for(;;) { [[int x;]]break; }"), HasSubstr("extracted")); in TEST_F()
43 EXPECT_THAT(apply(" for([[int i = 0;]];);"), HasSubstr("extracted")); in TEST_F()
45 EXPECT_THAT(apply(" if(true) [[{ return; }]] "), HasSubstr("extracted")); in TEST_F()
47 EXPECT_THAT(apply(" if(true) [[if (false) return;]] "), in TEST_F()
50 apply("#define RETURN_IF_ERROR(x) if (x) return\nRETU^RN_IF_ERROR(4);"), in TEST_F()
54 EXPECT_THAT(apply(" for([[int i = 0;]];);"), HasSubstr("unavailable")); in TEST_F()
84 EXPECT_EQ(apply(ParameterCheckInput), ParameterCheckOutput); in TEST_F()
98 EXPECT_EQ(apply(ConstCheckInput), ConstCheckOutput); in TEST_F()
101 EXPECT_THAT(apply("void f() { [[int a; f();]] }"), StartsWith("fail")); in TEST_F()
112 EXPECT_EQ(apply(MethodFailInput), "unavailable"); in TEST_F()
122 EXPECT_EQ(apply(TemplateFailInput), "unavailable"); in TEST_F()
135 EXPECT_EQ(apply(MacroInput), MacroOutput); in TEST_F()
138 EXPECT_EQ(apply("void f([[int a]]);"), "unavailable"); in TEST_F()
145 EXPECT_EQ(apply(CompoundFailInput), "unavailable"); in TEST_F()
151 EXPECT_THAT(apply(" [[for(;;) if(1) break;]] "), HasSubstr("extracted")); in TEST_F()
152 EXPECT_THAT(apply(" for(;;) [[while(1) break;]] "), HasSubstr("extracted")); in TEST_F()
153 EXPECT_THAT(apply(" [[switch(1) { break; }]]"), HasSubstr("extracted")); in TEST_F()
154 EXPECT_THAT(apply(" [[while(1) switch(1) { continue; }]]"), in TEST_F()
157 EXPECT_THAT(apply(" for(;;) [[if(1) continue;]] "), StartsWith("fail")); in TEST_F()
158 EXPECT_THAT(apply(" while(1) [[if(1) break;]] "), StartsWith("fail")); in TEST_F()
159 EXPECT_THAT(apply(" switch(1) { [[break;]] }"), StartsWith("fail")); in TEST_F()
160 EXPECT_THAT(apply(" for(;;) { [[while(1) break; break;]] }"), in TEST_F()
197 EXPECT_EQ(apply(Before), After); in TEST_F()