Lines Matching refs:ModExpr

125     const std::string ModExpr = "x " + GetParam() + " 10";  in TEST_P()  local
126 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P()
129 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
134 const std::string ModExpr = "(x) " + GetParam() + " 10"; in TEST_P() local
135 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P()
138 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
143 const std::string ModExpr = "x " + GetParam() + " 10"; in TEST_P() local
145 "void f() { int x, y; y, " + ModExpr + "; }", {"-Wno-unused-value"}); in TEST_P()
148 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
154 const std::string ModExpr = "y, x, y " + GetParam() + " 10"; in TEST_P() local
156 "void f() { int x, y; " + ModExpr + "; }", {"-Wno-unused-value"}); in TEST_P()
164 const std::string ModExpr = "(y != 0 ? y : x) " + GetParam() + " 10"; in TEST_P() local
166 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
169 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
175 const std::string ModExpr = in TEST_P() local
178 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
181 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
187 const std::string ModExpr = "(y != 0 ? (y) : ((x))) " + GetParam() + " 10"; in TEST_P() local
189 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
192 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
197 const std::string ModExpr = "(y ?: x) " + GetParam() + " 10"; in TEST_P() local
199 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }"); in TEST_P()
202 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()
226 const std::string ModExpr = GetParam(); in TEST_P() local
227 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }"); in TEST_P()
230 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr)); in TEST_P()