MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / TEST_F

Function TEST_F

tests/unit/sys/test_expressionparser.cxx:106–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104};
105
106TEST_F(ExpressionParserTest, Parse2) {
107 auto fieldgen = parser.parseString("2");
108 EXPECT_EQ(fieldgen->str(), "2");
109
110 for (auto x : x_array) {
111 for (auto y : y_array) {
112 for (auto z : z_array) {
113 for (auto t : t_array) {
114 auto ctx = LegacyContext(x, y, z, t);
115 EXPECT_DOUBLE_EQ(fieldgen->generate(ctx), 2);
116 }
117 }
118 }
119 }
120}
121
122TEST_F(ExpressionParserTest, ParseX) {
123 auto fieldgen = parser.parseString("x");

Callers

nothing calls this directly

Calls 9

LegacyContextFunction · 0.85
parseStringMethod · 0.80
addGeneratorMethod · 0.80
addBinaryOpMethod · 0.80
strMethod · 0.45
generateMethod · 0.45
cloneMethod · 0.45
fuzzyFindMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected