Lines Matching defs:ModExpr

133     const std::string ModExpr = "x " + GetParam() + " 10";
134 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }");
137 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
142 const std::string ModExpr = "(x) " + GetParam() + " 10";
143 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }");
146 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
151 const std::string ModExpr = "x " + GetParam() + " 10";
153 "void f() { int x, y; y, " + ModExpr + "; }", {"-Wno-unused-value"});
156 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
162 const std::string ModExpr = "y, x, y " + GetParam() + " 10";
164 "void f() { int x, y; " + ModExpr + "; }", {"-Wno-unused-value"});
172 const std::string ModExpr = "(y != 0 ? y : x) " + GetParam() + " 10";
174 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }");
177 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
183 const std::string ModExpr =
186 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }");
189 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
195 const std::string ModExpr = "(y != 0 ? (y) : ((x))) " + GetParam() + " 10";
197 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }");
200 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
205 const std::string ModExpr = "(y ?: x) " + GetParam() + " 10";
207 buildASTFromCode("void f() { int y = 0, x; " + ModExpr + "; }");
210 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));
234 const std::string ModExpr = GetParam();
235 const auto AST = buildASTFromCode("void f() { int x; " + ModExpr + "; }");
238 EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre(ModExpr));