This commit is contained in:
Benjamin Marks 2025-02-07 02:15:24 +00:00 committed by GitHub
commit edb0fe242f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -544,8 +544,8 @@ arguments:
```cpp
class MockTurtleFactory : public TurtleFactory {
public:
Turtle* MakeTurtle(int length, int weight) override { ... }
Turtle* MakeTurtle(int length, int weight, int speed) override { ... }
Turtle* MakeTurtle(int length, int weight) override { return DoMakeTurtle(); }
Turtle* MakeTurtle(int length, int weight, int speed) override { return DoMakeTurtle(); }
// the above methods delegate to this one:
MOCK_METHOD(Turtle*, DoMakeTurtle, ());