MCPcopy Create free account
hub / github.com/Apress/design-patterns-in-modern-cpp / TEST_F

Function TEST_F

Behavioral/Visitor/VisitorCodingExercise.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 class Evaluate : public ::testing::Test {};
96
97 TEST_F(Evaluate, SimpleAddition)
98 {
99 Value v{2};
100 AdditionExpression simple{v,v};
101 ExpressionPrinter ep;
102 ep.accept(simple);
103 ASSERT_EQ("(2+2)", ep.str());
104 }
105
106 TEST_F(Evaluate, ProductOfAdditionAndValue)
107 {

Callers

nothing calls this directly

Calls 2

acceptMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected