We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5ebf7 commit f85e5b5Copy full SHA for f85e5b5
polymorphism/test/include/test_polymorphism/mocking.hpp
@@ -12,6 +12,11 @@ struct Mock {
12
std::list<std::string> collectedSetArguments;
13
mutable std::atomic<std::size_t> numberOfCallsToCoolFeature { 0 };
14
15
+ /**
16
+ * @brief Returns the last set value or a default value if none exists.
17
+ * @note Thread-safe. Multiple concurrent calls are safe.
18
+ * @return The last set string or "<default value>" if no strings were set
19
+ */
20
std::string coolFeature() const
21
{
22
++numberOfCallsToCoolFeature;
0 commit comments